Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CreateOption is the option of create CreateOption = iota // DeleteOption is the option of delete DeleteOption // UpdateOption is the option of update UpdateOption )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ResourceType ResourceType `json:"resource_type"` Option int `json:"option"` OldValue interface{} `json:"old_value"` Value interface{} `json:"value"` }
Event is the event of adc
type ResourceType ¶
type ResourceType string
ResourceType is the type of resource
var ( // ServiceResourceType is the resource type of service ServiceResourceType ResourceType = "service" // RouteResourceType is the resource type of route RouteResourceType ResourceType = "route" // ConsumerResourceType is the resource type of consumer ConsumerResourceType ResourceType = "consumer" // SSLResourceType is the resource type of SSL SSLResourceType ResourceType = "ssl" // GlobalRuleResourceType is the resource type of global rule GlobalRuleResourceType ResourceType = "global_rule" // PluginConfigResourceType is the resource type of plugin config PluginConfigResourceType ResourceType = "plugin_config" // ConsumerGroupResourceType is the resource type of consumer group ConsumerGroupResourceType ResourceType = "consumer_group" // PluginMetadataResourceType is the resource type of consumer group PluginMetadataResourceType ResourceType = "plugin_metadata" // StreamRouteResourceType is the resource type of stream route StreamRouteResourceType ResourceType = "stream_route" // UpstreamResourceType is the resource type of upstream UpstreamResourceType ResourceType = "upstream" )
Click to show internal directories.
Click to hide internal directories.