db

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFound = errors.New("data not found")
)

Functions

This section is empty.

Types

type DB

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

func NewMemDB

func NewMemDB(config *types.Configuration) (*DB, error)

func (*DB) GetConsumerByID added in v0.2.0

func (db *DB) GetConsumerByID(username string) (*types.Consumer, error)

func (*DB) GetConsumerGroupByID added in v0.2.0

func (db *DB) GetConsumerGroupByID(id string) (*types.ConsumerGroup, error)

func (*DB) GetGlobalRuleByID added in v0.2.0

func (db *DB) GetGlobalRuleByID(id string) (*types.GlobalRule, error)

func (*DB) GetPluginConfigByID added in v0.2.0

func (db *DB) GetPluginConfigByID(id string) (*types.PluginConfig, error)

func (*DB) GetPluginMetadataByID added in v0.2.0

func (db *DB) GetPluginMetadataByID(id string) (*types.PluginMetadata, error)

func (*DB) GetRouteByID

func (db *DB) GetRouteByID(id string) (*types.Route, error)

func (*DB) GetSSLByID added in v0.2.0

func (db *DB) GetSSLByID(id string) (*types.SSL, error)

func (*DB) GetServiceByID

func (db *DB) GetServiceByID(id string) (*types.Service, error)

func (*DB) GetStreamRouteByID added in v0.4.0

func (db *DB) GetStreamRouteByID(id string) (*types.StreamRoute, error)

func (*DB) GetUpstreamByID added in v0.4.0

func (db *DB) GetUpstreamByID(id string) (*types.Upstream, error)

Jump to

Keyboard shortcuts

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