Documentation
¶
Index ¶
- Constants
- type Info
- type Message
- type MessagePipe
- func (p *MessagePipe) DeRegister(ctx context.Context, pluginNames []string) error
- func (p *MessagePipe) Index(pluginName string, plugins []Plugin) int
- func (p *MessagePipe) IsPluginRegistered(pluginName string) bool
- func (p *MessagePipe) Plugins() []Plugin
- func (p *MessagePipe) Process(ctx context.Context, messages ...*Message)
- func (p *MessagePipe) Register(size int, plugins []Plugin) error
- func (p *MessagePipe) Run(ctx context.Context)
- type MessagePipeInterface
- type MessageWithContext
- type Payload
- type Plugin
Constants ¶
View Source
const ( AddInstancesTopic = "add-instances" UpdatedInstancesTopic = "updated-instances" DeletedInstancesTopic = "deleted-instances" ResourceUpdateTopic = "resource-update" NginxConfigUpdateTopic = "nginx-config-update" InstanceHealthTopic = "instance-health" ConfigUploadRequestTopic = "config-upload-request" DataPlaneResponseTopic = "data-plane-response" ConnectionCreatedTopic = "connection-created" CredentialUpdatedTopic = "credential-updated" ConnectionResetTopic = "connection-reset" ConfigApplyRequestTopic = "config-apply-request" WriteConfigSuccessfulTopic = "write-config-successful" ConfigApplySuccessfulTopic = "config-apply-successful" ConfigApplyFailedTopic = "config-apply-failed" ConfigApplyCompleteTopic = "config-apply-complete" RollbackWriteTopic = "rollback-write" DataPlaneHealthRequestTopic = "data-plane-health-request" DataPlaneHealthResponseTopic = "data-plane-health-response" APIActionRequestTopic = "api-action-request" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessagePipe ¶
type MessagePipe struct {
// contains filtered or unexported fields
}
func NewMessagePipe ¶
func NewMessagePipe(size int) *MessagePipe
func (*MessagePipe) DeRegister ¶
func (p *MessagePipe) DeRegister(ctx context.Context, pluginNames []string) error
func (*MessagePipe) Index ¶ added in v3.1.0
func (p *MessagePipe) Index(pluginName string, plugins []Plugin) int
func (*MessagePipe) IsPluginRegistered ¶
func (p *MessagePipe) IsPluginRegistered(pluginName string) bool
func (*MessagePipe) Plugins ¶ added in v3.1.0
func (p *MessagePipe) Plugins() []Plugin
func (*MessagePipe) Process ¶
func (p *MessagePipe) Process(ctx context.Context, messages ...*Message)
func (*MessagePipe) Run ¶
func (p *MessagePipe) Run(ctx context.Context)
type MessagePipeInterface ¶
type MessageWithContext ¶
type MessageWithContext struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.