Documentation ¶ Index ¶ func GetDb() *sql.DB type LiteStore func NewLiteStore() *LiteStore func (ls *LiteStore) Exists(s ...string) bool func (ls *LiteStore) GetAll() []Site func (ls *LiteStore) Store(author, path string) error type Site type SiteStore Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetDb ¶ func GetDb() *sql.DB Types ¶ type LiteStore ¶ type LiteStore struct { LiteDB *sql.DB } func NewLiteStore ¶ func NewLiteStore() *LiteStore you can implement other stores if you want it func (*LiteStore) Exists ¶ func (ls *LiteStore) Exists(s ...string) bool func (*LiteStore) GetAll ¶ func (ls *LiteStore) GetAll() []Site func (*LiteStore) Store ¶ func (ls *LiteStore) Store(author, path string) error type Site ¶ type Site struct { Id *int64 `json:"id"` Author *string `json:"author"` Mapping *string `json:"mapping"` Created *int64 `json:"created"` Updated *int64 `json:"updated"` Time *string `json:"time"` } type SiteStore ¶ type SiteStore interface { Store(author, path string) error Exists(...string) bool GetAll() []Site } Source Files ¶ View all Source files lite_store.go sqllite.go store.go Click to show internal directories. Click to hide internal directories.