Documentation ¶
Index ¶
- Variables
- func CreateDB(filename string) (pool *sqlitex.Pool, err error)
- type Archive
- type ArchiveEntryStatus
- type ArchiveRepo
- func (r *ArchiveRepo) Create(key string, status ArchiveEntryStatus, archiveItem model.ArchiveItem) (err error)
- func (r *ArchiveRepo) IsLoaded(key string) (status ArchiveEntryStatus, err error)
- func (r *ArchiveRepo) Migrate() (err error)
- func (r *ArchiveRepo) SetStatus(key string, status ArchiveEntryStatus) (err error)
- type HistoryItem
- type Interface
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDuplicate = errors.New("record already exists")
)
Functions ¶
Types ¶
type ArchiveEntryStatus ¶
type ArchiveEntryStatus int
const ( Unknown ArchiveEntryStatus = iota NotExists NotLoaded Loaded )
type ArchiveRepo ¶
type ArchiveRepo struct {
// contains filtered or unexported fields
}
func (*ArchiveRepo) Create ¶
func (r *ArchiveRepo) Create(key string, status ArchiveEntryStatus, archiveItem model.ArchiveItem) (err error)
func (*ArchiveRepo) IsLoaded ¶
func (r *ArchiveRepo) IsLoaded(key string) (status ArchiveEntryStatus, err error)
func (*ArchiveRepo) Migrate ¶
func (r *ArchiveRepo) Migrate() (err error)
func (*ArchiveRepo) SetStatus ¶
func (r *ArchiveRepo) SetStatus(key string, status ArchiveEntryStatus) (err error)
type HistoryItem ¶
type HistoryItem struct {
Url string `json:"string"`
}
type Interface ¶
type Interface interface { Migrate() error IsLoaded(key string) (status ArchiveEntryStatus, err error) Create(key string, status ArchiveEntryStatus, archiveItem model.ArchiveItem) (err error) SetStatus(key string, status ArchiveEntryStatus) (err error) }
Click to show internal directories.
Click to hide internal directories.