nirvash/archetype/adapter.go

17 lines
396 B
Go
Raw Normal View History

package archetype
type Adapter interface {
Init(cfg *Config)
2022-05-29 06:26:36 +00:00
Name() string
GetConfig(key string) (interface{}, error)
SetConfig(key string, value interface{}) error
ListPages() map[string]string
GetPage(string) (Page, error)
2022-05-29 06:26:36 +00:00
FormatPage(string) string
FormattingHelp() string
CreatePage(page Page) error
EditPage(old Page, new Page) error
DeletePage(page Page) error
Build() string
2022-05-29 06:26:36 +00:00
}