redis

package
v0.0.0-...-57f36d7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

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 RedisDataStore

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

func (*RedisDataStore) Get

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

func (*RedisDataStore) GetApp

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

func (*RedisDataStore) GetApps

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

func (*RedisDataStore) GetRoute

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

func (*RedisDataStore) GetRoutes

func (ds *RedisDataStore) GetRoutes(ctx context.Context, filter *models.RouteFilter) ([]*models.Route, error)

func (*RedisDataStore) GetRoutesByApp

func (ds *RedisDataStore) GetRoutesByApp(ctx context.Context, appName string, filter *models.RouteFilter) ([]*models.Route, error)

func (*RedisDataStore) InsertApp

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

func (*RedisDataStore) InsertRoute

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

func (*RedisDataStore) Put

func (ds *RedisDataStore) Put(ctx context.Context, key, value []byte) error

func (*RedisDataStore) RemoveApp

func (ds *RedisDataStore) RemoveApp(ctx context.Context, appName string) error

func (*RedisDataStore) RemoveRoute

func (ds *RedisDataStore) RemoveRoute(ctx context.Context, appName, routePath string) error

func (*RedisDataStore) UpdateApp

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

func (*RedisDataStore) UpdateRoute

func (ds *RedisDataStore) 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