channels

package
v0.0.0-...-43207eb Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorJitterChannelName = "ErrorJitterChannel"
View Source
var ErrorNonJitterChannelName = "ErrorNonJitterChannel"
View Source
var RPCCallerChannelName = "RPCCallerChannel"
View Source
var WebhookChannelName = "WebhookChannel"

Functions

func NewErrorJitterChannel

func NewErrorJitterChannel(cfg ErrorJitterChannelConfigs) *errorJitterPool

func NewErrorNonJitterChannel

func NewErrorNonJitterChannel(cfg ErrorNonJitterChannelConfigs) *errorNonJitterPool

func NewRPCCallerChannel

func NewRPCCallerChannel(cfg RPCCallerChannelConfigs) *rpcCallerPool

func NewWebhookChannel

func NewWebhookChannel(cfg WebhookChannelConfigs) *webhookPool

Types

type ErrorJitterChannelConfigs

type ErrorJitterChannelConfigs struct {
	TxManager            services.TransactionManager
	Router               router.Router
	MaxBufferSize        int
	MaxWorkers           int
	MaxRetries           int
	MinWaitBtwnRetriesMS int
}

type ErrorNonJitterChannelConfigs

type ErrorNonJitterChannelConfigs struct {
	TxManager         services.TransactionManager
	Router            router.Router
	MaxBufferSize     int
	MaxWorkers        int
	MaxRetries        int
	WaitBtwnRetriesMS int
}

type RPCCallerChannelConfigs

type RPCCallerChannelConfigs struct {
	TxManager     services.TransactionManager
	Router        router.Router
	Store         store.Store
	MaxBufferSize int
	MaxWorkers    int
}

type WebhookChannelConfigs

type WebhookChannelConfigs struct {
	HTTPClient           utils.HTTPClient
	Store                store.Store
	MaxBufferSize        int
	MaxWorkers           int
	MaxRetries           int
	MinWaitBtwnRetriesMS int
}

type WorkerPool

type WorkerPool interface {
	Submit(task func())
	StopAndWait()
}

Jump to

Keyboard shortcuts

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