Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigChangeEvent ¶
type ConfigChangeEvent struct {
ChangeType ConfigChangeType
Operation string // INSERT, UPDATE, DELETE
}
ConfigChangeEvent represents a configuration change notification
type ConfigChangeHandler ¶
type ConfigChangeHandler func(event ConfigChangeEvent)
ConfigChangeHandler is a callback function for config changes
type ConfigChangeType ¶
type ConfigChangeType string
ConfigChangeType represents the type of configuration change
const ( ChangeTypeProviderConfig ConfigChangeType = "provider_configs" ChangeTypeAPIKey ConfigChangeType = "api_keys" ChangeTypeVirtualKey ConfigChangeType = "virtual_keys" ChangeTypeVirtualKeyProvider ConfigChangeType = "virtual_key_providers" ChangeTypeVirtualKeyModel ConfigChangeType = "virtual_key_models" )
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
PubSub handles PostgreSQL LISTEN/NOTIFY for configuration changes
func (*PubSub) Subscribe ¶
func (ps *PubSub) Subscribe(handler ConfigChangeHandler)
Subscribe adds a handler for config change events
Click to show internal directories.
Click to hide internal directories.