signalr

package
v1.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

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 (s *SignalR) GetAadClientAccessToken(ctx context.Context, hub string, user string) (string, error)

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

func (s *SignalR) Init(_ context.Context, metadata bindings.Metadata) (err error)

Init is responsible for initializing the SignalR output based on the metadata.

func (*SignalR) Invoke

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL