2022-05-31 05:38:51 +00:00
|
|
|
package archetype
|
2022-05-29 04:45:44 +00:00
|
|
|
|
|
|
|
type Adapter interface {
|
2022-05-31 05:38:51 +00:00
|
|
|
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
|
2022-05-31 05:38:51 +00:00
|
|
|
GetPage(string) (Page, error)
|
2022-05-29 06:26:36 +00:00
|
|
|
FormatPage(string) string
|
|
|
|
FormattingHelp() string
|
2022-05-31 05:38:51 +00:00
|
|
|
CreatePage(page Page) error
|
|
|
|
EditPage(old Page, new Page) error
|
|
|
|
DeletePage(page Page) error
|
|
|
|
Build() string
|
2022-05-29 06:26:36 +00:00
|
|
|
}
|