Documentation ¶
Index ¶
- func NewConnection(filepath string, mode os.FileMode) (*bolt.DB, error)
- type RoutesStore
- func (rs *RoutesStore) Delete(key string) error
- func (rs *RoutesStore) GetAll() ([]*models.Route, error)
- func (rs *RoutesStore) GetByKey(key string) (*models.Route, error)
- func (rs *RoutesStore) Health() error
- func (rs *RoutesStore) Migrate() error
- func (rs *RoutesStore) Name() string
- func (rs *RoutesStore) Put(route *models.Route) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RoutesStore ¶
type RoutesStore struct {
// contains filtered or unexported fields
}
func NewRoutesStore ¶
func NewRoutesStore(db *bolt.DB, bucketName string) *RoutesStore
func (*RoutesStore) Delete ¶
func (rs *RoutesStore) Delete(key string) error
func (*RoutesStore) Health ¶
func (rs *RoutesStore) Health() error
func (*RoutesStore) Migrate ¶
func (rs *RoutesStore) Migrate() error
func (*RoutesStore) Name ¶
func (rs *RoutesStore) Name() string
Click to show internal directories.
Click to hide internal directories.