Version: v0.0.0-...-57f36d7 Latest Latest

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

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




This section is empty.


This section is empty.


func New

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


type PostgresDatastore

type PostgresDatastore struct {
	// contains filtered or unexported fields

func (*PostgresDatastore) Get

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

func (*PostgresDatastore) GetApp

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

func (*PostgresDatastore) GetApps

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

func (*PostgresDatastore) GetRoute

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

func (*PostgresDatastore) GetRoutes

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

func (*PostgresDatastore) GetRoutesByApp

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

func (*PostgresDatastore) InsertApp

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

func (*PostgresDatastore) InsertRoute

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

func (*PostgresDatastore) Put

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

func (*PostgresDatastore) RemoveApp

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

func (*PostgresDatastore) RemoveRoute

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

func (*PostgresDatastore) Tx

func (ds *PostgresDatastore) Tx(f func(*sql.Tx) error) error

func (*PostgresDatastore) UpdateApp

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

func (*PostgresDatastore) UpdateRoute

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

Source Files

Jump to

Keyboard shortcuts

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