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