Documentation ¶
Index ¶
- type BoltStore
- func (b *BoltStore) Close() error
- func (b *BoltStore) CreateEntry(entry shared.Entry, id string) error
- func (b *BoltStore) DeleteEntry(id string) error
- func (b *BoltStore) GetEntryByID(id string) (*shared.Entry, error)
- func (b *BoltStore) GetVisitors(id string) ([]shared.Visitor, error)
- func (b *BoltStore) IncreaseVisitCounter(id string) error
- func (b *BoltStore) RegisterVisitor(id, visitID string, visitor shared.Visitor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltStore ¶
type BoltStore struct {
// contains filtered or unexported fields
}
BoltStore implements the stores.Storage interface
func (*BoltStore) CreateEntry ¶
CreateEntry creates an entry by a given ID and returns an error
func (*BoltStore) DeleteEntry ¶
DeleteEntry deleted an entry by a given ID and returns an error
func (*BoltStore) GetEntryByID ¶
GetEntryByID returns a entry and an error by the shorted ID
func (*BoltStore) GetVisitors ¶
GetVisitors returns the visitors and an error of an entry
func (*BoltStore) IncreaseVisitCounter ¶
IncreaseVisitCounter increases the visit counter and sets the current time as the last visit ones
Click to show internal directories.
Click to hide internal directories.