db

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSpan added in v0.4.0

func CreateSpan(ctx context.Context, spanName string, attributes ...attribute.KeyValue) (context.Context, trace.Span)

Types

type InMemoryRouteStorer

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

func NewInMemoryRouteStorer

func NewInMemoryRouteStorer(config config.Config) *InMemoryRouteStorer

func (*InMemoryRouteStorer) DeleteRoute

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

func (*InMemoryRouteStorer) DeleteRoutes

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

func (*InMemoryRouteStorer) GetAllRoutes

func (s *InMemoryRouteStorer) GetAllRoutes(ctx context.Context) ([]route.Config, error)

func (*InMemoryRouteStorer) GetAllTenantRoutes

func (s *InMemoryRouteStorer) GetAllTenantRoutes(ctx context.Context, id tenant.Id) ([]route.Config, error)

func (*InMemoryRouteStorer) GetRoute

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

func (*InMemoryRouteStorer) SetRoute

func (s *InMemoryRouteStorer) SetRoute(ctx context.Context, r route.Config) error

func (*InMemoryRouteStorer) SetRoutes

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

type InMemoryStorer

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

func NewTenantInmemoryStorer

func NewTenantInmemoryStorer() *InMemoryStorer

func (*InMemoryStorer) DeleteConfig

func (s *InMemoryStorer) DeleteConfig(ctx context.Context, id tenant.Id) error

func (*InMemoryStorer) GetAllConfigs added in v0.4.0

func (s *InMemoryStorer) GetAllConfigs(ctx context.Context) ([]tenant.Config, error)

func (*InMemoryStorer) GetConfig

func (s *InMemoryStorer) GetConfig(ctx context.Context, id tenant.Id) (*tenant.Config, error)

func (*InMemoryStorer) SetConfig

func (s *InMemoryStorer) SetConfig(ctx context.Context, config tenant.Config) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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