postgres

package
v0.0.0-...-3912389 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2016 License: Apache-2.0 Imports: 7 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 PostgresDatastore

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

func (*PostgresDatastore) Get

func (ds *PostgresDatastore) Get(key []byte) ([]byte, error)

func (*PostgresDatastore) GetApp

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

func (*PostgresDatastore) GetApps

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

func (*PostgresDatastore) GetRoute

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

func (*PostgresDatastore) GetRoutes

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

func (*PostgresDatastore) GetRoutesByApp

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

func (*PostgresDatastore) InsertApp

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

func (*PostgresDatastore) InsertRoute

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

func (*PostgresDatastore) Put

func (ds *PostgresDatastore) Put(key, value []byte) error

func (*PostgresDatastore) RemoveApp

func (ds *PostgresDatastore) RemoveApp(appName string) error

func (*PostgresDatastore) RemoveRoute

func (ds *PostgresDatastore) RemoveRoute(appName, routePath string) error

func (*PostgresDatastore) UpdateApp

func (ds *PostgresDatastore) UpdateApp(app *models.App) (*models.App, error)

func (*PostgresDatastore) UpdateRoute

func (ds *PostgresDatastore) UpdateRoute(route *models.Route) (*models.Route, error)

Jump to

Keyboard shortcuts

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