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