mirror of
https://hacklab.nilfm.cc/nirvash
synced 2024-10-22 14:01:49 +00:00
16 lines
319 B
Go
16 lines
319 B
Go
|
package adapter
|
||
|
|
||
|
import (
|
||
|
"nilfm.cc/git/nirvash/page"
|
||
|
)
|
||
|
|
||
|
type Adapter interface {
|
||
|
Name() string
|
||
|
GetConfig(key string) (interface{}, error)
|
||
|
SetConfig(key string, value interface{}) error
|
||
|
ListPages() map[string]string
|
||
|
GetPage(string) page.Page
|
||
|
FormatPage(string) string
|
||
|
FormattingHelp() string
|
||
|
Build()
|
||
|
}
|