Documentation ¶
Index ¶
- Constants
- func New(endpoint string, opts ...swarm.Option) (swarm.Broker, error)
- type AuthorizerApiKeyProps
- type AuthorizerJwtProps
- type AuthorizerUniversalProps
- type Broker
- func (broker *Broker) NewAuthorizerApiKey(props *AuthorizerApiKeyProps) awsapigatewayv2.IWebSocketRouteAuthorizer
- func (broker *Broker) NewAuthorizerJwt(props *AuthorizerJwtProps) awsapigatewayv2.IWebSocketRouteAuthorizer
- func (broker *Broker) NewAuthorizerUniversal(props *AuthorizerUniversalProps) awsapigatewayv2.IWebSocketRouteAuthorizer
- func (broker *Broker) NewGateway(props *WebSocketApiProps) awsapigatewayv2.WebSocketApi
- func (broker *Broker) NewSink(props *SinkProps) *Sink
- type BrokerProps
- type Client
- type Gateway
- type Sink
- type SinkProps
- type WSContext
- type WebSocketApiProps
Constants ¶
View Source
const WSRequest = WSContext("WS.Request")
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthorizerApiKeyProps ¶ added in v0.15.2
type AuthorizerJwtProps ¶ added in v0.15.2
type AuthorizerUniversalProps ¶ added in v0.15.2
type AuthorizerUniversalProps struct { AuthorizerApiKey *AuthorizerApiKeyProps AuthorizerJwt *AuthorizerJwtProps }
type Broker ¶ added in v0.15.0
type Broker struct { constructs.Construct Gateway awsapigatewayv2.WebSocketApi Authorizer awsapigatewayv2.IWebSocketRouteAuthorizer // contains filtered or unexported fields }
func NewBroker ¶ added in v0.15.0
func NewBroker(scope constructs.Construct, id *string, props *BrokerProps) *Broker
func (*Broker) NewAuthorizerApiKey ¶ added in v0.15.0
func (broker *Broker) NewAuthorizerApiKey(props *AuthorizerApiKeyProps) awsapigatewayv2.IWebSocketRouteAuthorizer
func (*Broker) NewAuthorizerJwt ¶ added in v0.15.2
func (broker *Broker) NewAuthorizerJwt(props *AuthorizerJwtProps) awsapigatewayv2.IWebSocketRouteAuthorizer
func (*Broker) NewAuthorizerUniversal ¶ added in v0.15.2
func (broker *Broker) NewAuthorizerUniversal(props *AuthorizerUniversalProps) awsapigatewayv2.IWebSocketRouteAuthorizer
func (*Broker) NewGateway ¶ added in v0.15.0
func (broker *Broker) NewGateway(props *WebSocketApiProps) awsapigatewayv2.WebSocketApi
type BrokerProps ¶ added in v0.15.0
type BrokerProps struct {
System string
}
type Gateway ¶ added in v0.15.0
type Gateway interface {
PostToConnection(ctx context.Context, params *apigatewaymanagementapi.PostToConnectionInput, optFns ...func(*apigatewaymanagementapi.Options)) (*apigatewaymanagementapi.PostToConnectionOutput, error)
}
WebSocket declares the subset of interface from AWS SDK used by the lib.
type SinkProps ¶
type SinkProps struct { Route string Lambda *scud.FunctionGoProps Gateway awsapigatewayv2.WebSocketApi }
type WebSocketApiProps ¶
type WebSocketApiProps struct { *awsapigatewayv2.WebSocketApiProps Throttle *awsapigatewayv2.ThrottleSettings Host *string TlsArn *string }
Click to show internal directories.
Click to hide internal directories.