Documentation ¶
Index ¶
- Variables
- func GetConsumer(id string) (resource.Consumer, error)
- func GetConsumerByPluginKey(pluginName string, key string) (resource.Consumer, error)
- func GetConsumerGroup(id string) (resource.ConsumerGroup, error)
- func GetPluginConfigRule(id string) (resource.PluginConfigRule, error)
- func GetPluginMetadata(id string, v any) error
- func GetService(id string) (resource.Service, error)
- func GetUpstream(id string) (resource.Upstream, error)
- func ListGlobalRules() ([]resource.GlobalRule, error)
- func ListRoutes() ([]resource.Route, error)
- func ParseConsumer(config []byte) (resource.Consumer, error)
- func ParseConsumerGroup(config []byte) (resource.ConsumerGroup, error)
- func ParseGlobalRule(config []byte) (resource.GlobalRule, error)
- func ParsePluginConfigRule(config []byte) (resource.PluginConfigRule, error)
- func ParseRoute(config []byte) (resource.Route, error)
- func ParseService(config []byte) (resource.Service, error)
- func ParseUpstream(config []byte) (resource.Upstream, error)
- func PutBack(event *Event)
- type Event
- type EventType
- type EventUpdateHook
- type Store
- func (s *Store) AddEventUpdateHook(hook EventUpdateHook)
- func (s *Store) GetBucketData(bucketName string) [][]byte
- func (s *Store) GetConsumerNameByPluginKey(pluginName string, key string) ([]byte, error)
- func (s *Store) GetFromBucket(bucketName string, id []byte) []byte
- func (s *Store) InitBuckets()
- func (s *Store) Start()
- func (s *Store) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
Functions ¶
func GetConsumerByPluginKey ¶
func GetConsumerGroup ¶
func GetConsumerGroup(id string) (resource.ConsumerGroup, error)
func GetPluginConfigRule ¶
func GetPluginConfigRule(id string) (resource.PluginConfigRule, error)
func GetPluginMetadata ¶
func ListGlobalRules ¶
func ListGlobalRules() ([]resource.GlobalRule, error)
func ListRoutes ¶
func ParseConsumerGroup ¶
func ParseConsumerGroup(config []byte) (resource.ConsumerGroup, error)
func ParseGlobalRule ¶
func ParseGlobalRule(config []byte) (resource.GlobalRule, error)
func ParsePluginConfigRule ¶
func ParsePluginConfigRule(config []byte) (resource.PluginConfigRule, error)
Types ¶
type Event ¶
type EventUpdateHook ¶
type EventUpdateHook func(event *Event)
eventUpdateHook is a function that is called when an event is updated.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddEventUpdateHook ¶
func (s *Store) AddEventUpdateHook(hook EventUpdateHook)
func (*Store) GetBucketData ¶
func (*Store) GetConsumerNameByPluginKey ¶
func (*Store) GetFromBucket ¶
get specific key from bucket
func (*Store) InitBuckets ¶
func (s *Store) InitBuckets()
Click to show internal directories.
Click to hide internal directories.