Documentation
¶
Index ¶
- Variables
- type DB
- func (db *DB) GetConsumerByID(username string) (*types.Consumer, error)
- func (db *DB) GetConsumerGroupByID(id string) (*types.ConsumerGroup, error)
- func (db *DB) GetGlobalRuleByID(id string) (*types.GlobalRule, error)
- func (db *DB) GetPluginConfigByID(id string) (*types.PluginConfig, error)
- func (db *DB) GetPluginMetadataByID(id string) (*types.PluginMetadata, error)
- func (db *DB) GetRouteByID(id string) (*types.Route, error)
- func (db *DB) GetSSLByID(id string) (*types.SSL, error)
- func (db *DB) GetServiceByID(id string) (*types.Service, error)
- func (db *DB) GetStreamRouteByID(id string) (*types.StreamRoute, error)
- func (db *DB) GetUpstreamByID(id string) (*types.Upstream, error)
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 (*DB) GetConsumerByID ¶ added in v0.2.0
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) GetStreamRouteByID ¶ added in v0.4.0
func (db *DB) GetStreamRouteByID(id string) (*types.StreamRoute, error)
Click to show internal directories.
Click to hide internal directories.