redis

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	GetString(key string) string
	GetInt(key string) int
	GetBool(key string) bool
}

type RedisDbStorer

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

func NewRedisDbStorer

func NewRedisDbStorer(config Config, logger *zerolog.Logger) (*RedisDbStorer, error)

func (*RedisDbStorer) DeleteRoute

func (d *RedisDbStorer) DeleteRoute(ctx context.Context, tid tenant.Id, id string) error

func (*RedisDbStorer) DeleteRoutes

func (d *RedisDbStorer) DeleteRoutes(ctx context.Context, tid tenant.Id, ids []string) error

func (*RedisDbStorer) GetAllRoutes

func (d *RedisDbStorer) GetAllRoutes(ctx context.Context) ([]route.Config, error)

func (*RedisDbStorer) GetAllTenantRoutes

func (d *RedisDbStorer) GetAllTenantRoutes(ctx context.Context, tid tenant.Id) ([]route.Config, error)

func (*RedisDbStorer) GetRoute

func (d *RedisDbStorer) GetRoute(ctx context.Context, tid tenant.Id, id string) (route.Config, error)

func (*RedisDbStorer) SetRoute

func (d *RedisDbStorer) SetRoute(ctx context.Context, r route.Config) error

func (*RedisDbStorer) SetRoutes

func (d *RedisDbStorer) SetRoutes(ctx context.Context, routes []route.Config) error

Jump to

Keyboard shortcuts

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