isbsvc

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferCreateOption

type BufferCreateOption func(*bufferCreateOptions) error

func WithBufferConfig

func WithBufferConfig(conf string) BufferCreateOption

WithBufferConfig sets buffer config option

type BufferInfo

type BufferInfo struct {
	Name            string
	PendingCount    int64
	AckPendingCount int64
	TotalMessages   int64
}

BufferInfo wraps the buffer state information

type ISBService

type ISBService interface {
	CreateBuffers(ctx context.Context, buffers []string, opts ...BufferCreateOption) error
	DeleteBuffers(ctx context.Context, buffers []string) error
	ValidateBuffers(ctx context.Context, buffers []string) error
	GetBufferInfo(ctx context.Context, buffer string) (*BufferInfo, error)
}

ISBService is an interface used to do the operations on ISBS

func NewISBJetStreamSvc

func NewISBJetStreamSvc(pipelineName string, opts ...JSServiceOption) (ISBService, error)

func NewISBRedisSvc

func NewISBRedisSvc(client *clients.RedisClient) ISBService

NewISBRedisSvc is used to return a new object of type isbsRedisSvc

type JSServiceOption

type JSServiceOption func(*jetStreamSvc) error

func WithNatsConnection

func WithNatsConnection(conn *nats.Conn) JSServiceOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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