shipper

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxBytes              int64 `json:"max_bytes"`
	MaxBatchSize          int   `json:"max_batch_size"`
	PublishTimeoutSeconds int   `json:"publish_timeout_seconds"`
	MaxInflightBatches    int   `json:"max_inflight_batches"`
	AckWaitSeconds        int   `json:"ack_wait_seconds"`
	DeleteStreamOnDone    bool  `json:"delete_stream_on_done"`
	BackoffSeconds        []int `json:"backoff_seconds"`
}

func (*Config) SetDefaults

func (cfg *Config) SetDefaults()

type Shipper

type Shipper struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, logger *zerolog.Logger, cfg *Config, natsCli *nats.Conn, scf scribe.ClientFactory) (*Shipper, error)

func (*Shipper) Shutdown

func (s *Shipper) Shutdown()

Jump to

Keyboard shortcuts

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