bolt

package
v0.0.0-...-d59d7d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 12 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(url *url.URL) (models.Datastore, error)

Types

type BoltDatastore

type BoltDatastore struct {
	// contains filtered or unexported fields
}

func (*BoltDatastore) Get

func (ds *BoltDatastore) Get(ctx context.Context, key []byte) ([]byte, error)

func (*BoltDatastore) GetApp

func (ds *BoltDatastore) GetApp(ctx context.Context, name string) (*models.App, error)

func (*BoltDatastore) GetApps

func (ds *BoltDatastore) GetApps(ctx context.Context, filter *models.AppFilter) ([]*models.App, error)

func (*BoltDatastore) GetRoute

func (ds *BoltDatastore) GetRoute(ctx context.Context, appName, routePath string) (*models.Route, error)

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) InsertApp

func (ds *BoltDatastore) InsertApp(ctx context.Context, app *models.App) (*models.App, error)

func (*BoltDatastore) InsertRoute

func (ds *BoltDatastore) InsertRoute(ctx context.Context, route *models.Route) (*models.Route, error)

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) UpdateApp

func (ds *BoltDatastore) UpdateApp(ctx context.Context, newapp *models.App) (*models.App, error)

func (*BoltDatastore) UpdateRoute

func (ds *BoltDatastore) UpdateRoute(ctx context.Context, newroute *models.Route) (*models.Route, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL