db

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 11 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 InMemoryFragmentStorer added in v0.9.0

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

func NewInMemoryFragmentStorer added in v0.9.0

func NewInMemoryFragmentStorer(config config.Config) *InMemoryFragmentStorer

func (*InMemoryFragmentStorer) DeleteFragment added in v0.9.0

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

func (*InMemoryFragmentStorer) DeleteFragments added in v0.9.0

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

func (*InMemoryFragmentStorer) GetAllFragments added in v0.9.0

func (s *InMemoryFragmentStorer) GetAllFragments(ctx context.Context) ([]route.PluginConfig, error)

func (*InMemoryFragmentStorer) GetAllTenantFragments added in v0.9.0

func (s *InMemoryFragmentStorer) GetAllTenantFragments(ctx context.Context, tid tenant.Id) ([]route.PluginConfig, error)

func (*InMemoryFragmentStorer) GetFragment added in v0.9.0

func (s *InMemoryFragmentStorer) GetFragment(ctx context.Context, tid tenant.Id, id string) (route.PluginConfig, error)

func (*InMemoryFragmentStorer) SetFragment added in v0.9.0

func (s *InMemoryFragmentStorer) SetFragment(ctx context.Context, tid tenant.Id, r route.PluginConfig) error

func (*InMemoryFragmentStorer) SetFragments added in v0.9.0

func (s *InMemoryFragmentStorer) SetFragments(ctx context.Context, tid tenant.Id, fragments []route.PluginConfig) error

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