Documentation ¶
Index ¶
- Constants
- func NewSignalR(logger logger.Logger) bindings.OutputBinding
- type SignalR
- func (s *SignalR) GenerateClientNegotiateResponse(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (s *SignalR) GetAadClientAccessToken(ctx context.Context, hub string, user string) (string, error)
- func (s *SignalR) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
- func (s *SignalR) Init(_ context.Context, metadata bindings.Metadata) (err error)
- func (s *SignalR) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (s *SignalR) Operations() []bindings.OperationKind
- func (s *SignalR) SendMessages(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- type SignalRMetadata
- type TokenResponse
Constants ¶
View Source
const ( // OperationKind ClientNegotiateOperation bindings.OperationKind = "clientNegotiate" )
Variables ¶
This section is empty.
Functions ¶
func NewSignalR ¶
func NewSignalR(logger logger.Logger) bindings.OutputBinding
NewSignalR creates a new output binding for Azure SignalR.
Types ¶
type SignalR ¶
type SignalR struct {
// contains filtered or unexported fields
}
SignalR is an output binding for Azure SignalR.
func (*SignalR) GenerateClientNegotiateResponse ¶ added in v1.12.0
func (s *SignalR) GenerateClientNegotiateResponse(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
func (*SignalR) GetAadClientAccessToken ¶ added in v1.12.0
func (*SignalR) GetComponentMetadata ¶ added in v1.11.0
func (s *SignalR) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
GetComponentMetadata returns the metadata of the component.
func (*SignalR) Init ¶
Init is responsible for initializing the SignalR output based on the metadata.
func (*SignalR) Invoke ¶
func (s *SignalR) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
func (*SignalR) Operations ¶
func (s *SignalR) Operations() []bindings.OperationKind
func (*SignalR) SendMessages ¶ added in v1.12.0
func (s *SignalR) SendMessages(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
type SignalRMetadata ¶ added in v1.11.0
type SignalRMetadata struct { Endpoint string `mapstructure:"endpoint"` AccessKey string `mapstructure:"accessKey"` Hub string `mapstructure:"hub"` ConnectionString string `mapstructure:"connectionString"` }
Metadata keys. Azure AD credentials are parsed separately and not listed here.
type TokenResponse ¶ added in v1.12.0
type TokenResponse struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.