11 lines
190 B
Go
11 lines
190 B
Go
package model
|
|
|
|
// Store interface
|
|
type Store interface {
|
|
Open() error
|
|
AddPage(string, string) error
|
|
CreatePage(Page) error
|
|
GetPage(string) (Page, error)
|
|
GetAllPages() ([]Page, error)
|
|
}
|