Documentation ¶
Index ¶
- type Bindable
- type ConfigType
- type Configuration
- type Connector
- type ConnectorService
- type Forwarder
- type Headers
- type InboundConnector
- type InboundDescriptor
- type InboundResponse
- type Ingress
- type Logger
- type OutboundConnector
- type OutboundDescriptor
- type OutboundRequest
- type StartContext
- type StopContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigType ¶
type ConfigType string
const ( ConfigTypeYaml ConfigType = "yaml" ConfigTypeJson ConfigType = "json" )
type Configuration ¶
type Connector ¶
type Connector interface { // Start can be used to initialise your server or client // Note: This function should return and not block Start(ctx StartContext) error Stop(ctx StopContext) error }
type ConnectorService ¶
type ConnectorService interface {
Start() error
}
type InboundConnector ¶
type InboundConnector interface { Connector }
type InboundDescriptor ¶
type InboundDescriptor interface { OutboundRequest Config() Bindable }
type InboundResponse ¶
type OutboundConnector ¶
type OutboundConnector interface { Connector HandleOutboundRequest(request OutboundRequest) (any, Headers, error) // see line 26, please }
type OutboundDescriptor ¶
type OutboundDescriptor interface { OutboundRequest Config() Bindable }
type OutboundRequest ¶
type StartContext ¶
type StartContext interface { Config() Configuration Ingress(name string) (Ingress, error) InboundDescriptors() []InboundDescriptor OutboundDescriptors() []OutboundDescriptor Forwarder() Forwarder }
type StopContext ¶
type StopContext interface { Logger }
Click to show internal directories.
Click to hide internal directories.