Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultNumWorkers = 10 QueueFlushInterval = 10 * time.Second DefaultBatchSize = 100 // number of messages to batch MaxGRPCRetries = 5 // Maximum message size for GRPC client in bytes MaxGRPCMessageSize = 1024 * 1024 * 100 // 100MB GRPCRetrySleep = time.Second * 5 )
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func TestConnection ¶
Types ¶
type Relay ¶
type Relay struct { Config *Config // contains filtered or unexported fields }
func (*Relay) CallWithRetry ¶ added in v0.16.0
func (r *Relay) CallWithRetry(ctx context.Context, method string, publish func(ctx context.Context) error) error
CallWithRetry will retry a GRPC call until it succeeds or reaches a maximum number of retries defined by MaxGRPCRetries
func (*Relay) StartWorkers ¶
Click to show internal directories.
Click to hide internal directories.