Documentation ¶
Index ¶
- func New(url *url.URL) (models.Datastore, error)
- type BoltDatastore
- func (ds *BoltDatastore) Get(ctx context.Context, key []byte) ([]byte, error)
- func (ds *BoltDatastore) GetApp(ctx context.Context, name string) (*models.App, error)
- func (ds *BoltDatastore) GetApps(ctx context.Context, filter *models.AppFilter) ([]*models.App, error)
- func (ds *BoltDatastore) GetRoute(ctx context.Context, appName, routePath string) (*models.Route, error)
- func (ds *BoltDatastore) GetRoutes(ctx context.Context, filter *models.RouteFilter) ([]*models.Route, error)
- func (ds *BoltDatastore) GetRoutesByApp(ctx context.Context, appName string, filter *models.RouteFilter) ([]*models.Route, error)
- func (ds *BoltDatastore) InsertApp(ctx context.Context, app *models.App) (*models.App, error)
- func (ds *BoltDatastore) InsertRoute(ctx context.Context, route *models.Route) (*models.Route, error)
- func (ds *BoltDatastore) Put(ctx context.Context, key, value []byte) error
- func (ds *BoltDatastore) RemoveApp(ctx context.Context, appName string) error
- func (ds *BoltDatastore) RemoveRoute(ctx context.Context, appName, routePath string) error
- func (ds *BoltDatastore) UpdateApp(ctx context.Context, newapp *models.App) (*models.App, error)
- func (ds *BoltDatastore) UpdateRoute(ctx context.Context, newroute *models.Route) (*models.Route, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoltDatastore ¶
type BoltDatastore struct {
// contains filtered or unexported fields
}
func (*BoltDatastore) GetRoutes ¶
func (ds *BoltDatastore) GetRoutes(ctx context.Context, filter *models.RouteFilter) ([]*models.Route, error)
func (*BoltDatastore) GetRoutesByApp ¶
func (ds *BoltDatastore) GetRoutesByApp(ctx context.Context, appName string, filter *models.RouteFilter) ([]*models.Route, error)
func (*BoltDatastore) InsertRoute ¶
func (*BoltDatastore) Put ¶
func (ds *BoltDatastore) Put(ctx context.Context, key, value []byte) error
func (*BoltDatastore) RemoveApp ¶
func (ds *BoltDatastore) RemoveApp(ctx context.Context, appName string) error
func (*BoltDatastore) RemoveRoute ¶
func (ds *BoltDatastore) RemoveRoute(ctx context.Context, appName, routePath string) error
func (*BoltDatastore) UpdateRoute ¶
Click to show internal directories.
Click to hide internal directories.