centrifuge

package
v1.0.16-herb-centrifug... Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	Publications []centrifuge.Publication
}

type CentrifugeClientConfig

type CentrifugeClientConfig struct {
	Endpoint string `json:"endpoint"`
	GetToken func(evt centrifuge.ConnectionTokenEvent) (string, error)
}

type CentrifugeConfig

type CentrifugeConfig struct {
	Channel                string                     `json:"channel"`
	BatchSize              int32                      `json:"batchSize"`
	NumberOfBatches        int32                      `json:"numberOfBatches"`
	CatchupStreamPosition  *centrifuge.StreamPosition `json:"catchupStreamPosition"`
	OnBatchReady           OnBatchReady               `json:"-"`
	CentrifugeClientConfig *CentrifugeClientConfig    `json:"centrifugeClientConfig"`
}

type ICentrifugeClient

type ICentrifugeClient interface {
	fluffycore_contracts_common.IDispose
	Configure(ctx context.Context, config *CentrifugeClientConfig)
	GetClient() (*centrifuge.Client, error)
}

type ICentrifugeStreamBatcher

type ICentrifugeStreamBatcher interface {
	Configure(ctx context.Context, config *CentrifugeConfig) error
	GetBatch(ctx context.Context) (*Batch, error)
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

type OnBatchReady

type OnBatchReady func()

type UnimplementedClientHandlers

type UnimplementedClientHandlers struct{}

func (UnimplementedClientHandlers) OnConnectedHandler

func (UnimplementedClientHandlers) OnConnectingHandler

func (UnimplementedClientHandlers) OnDisconnectHandler

func (UnimplementedClientHandlers) OnErrorHandler

func (UnimplementedClientHandlers) OnMessageHandler

func (UnimplementedClientHandlers) OnServerJoinHandler

func (UnimplementedClientHandlers) OnServerLeaveHandler

func (UnimplementedClientHandlers) OnServerPublicationHandler

func (s UnimplementedClientHandlers) OnServerPublicationHandler(centrifuge.ServerPublicationEvent)

func (UnimplementedClientHandlers) OnServerSubscribedHandler

func (s UnimplementedClientHandlers) OnServerSubscribedHandler(centrifuge.ServerSubscribedEvent)

func (UnimplementedClientHandlers) OnServerSubscribingHandler

func (s UnimplementedClientHandlers) OnServerSubscribingHandler(centrifuge.ServerSubscribingEvent)

func (UnimplementedClientHandlers) OnServerUnsubscribedHandler

func (s UnimplementedClientHandlers) OnServerUnsubscribedHandler(centrifuge.ServerUnsubscribedEvent)

type UnimplementedSubscriptionHandlers

type UnimplementedSubscriptionHandlers struct{}

func (UnimplementedSubscriptionHandlers) OnJoinHandler

func (UnimplementedSubscriptionHandlers) OnLeaveHandler

func (UnimplementedSubscriptionHandlers) OnPublicationHandler

func (UnimplementedSubscriptionHandlers) OnSubscribedHandler

func (UnimplementedSubscriptionHandlers) OnSubscribingHandler

func (UnimplementedSubscriptionHandlers) OnSubscriptionErrorHandler

func (UnimplementedSubscriptionHandlers) OnUnsubscribedHandler

Jump to

Keyboard shortcuts

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