types

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedSizeObserver

type FixedSizeObserver[T interface{}] interface {
	Publish(element T) uint64
	Subscribe(ctx context.Context) <-chan T
	GetLength() int
	Release()
	Ack(msgId uint64)
	WaitAck(msgId uint64)
}

type GrpcClient

type GrpcClient[T interface{}] interface {
	GetId() uuid.UUID
	SetId(id uuid.UUID)
	HasId() bool
	Stop()
	GetContext() context.Context
	Listen() error
}

type GrpcStreamDecorator

type GrpcStreamDecorator[I interface{}, O interface{}] interface {
	Fetch() (<-chan O, error)
	Release()
	GetStreamContext() context.Context
}

type Observer added in v0.0.2

type Observer[T interface{}] interface {
	Publish(element T) bool
	PublishWithWaiting(ctx context.Context, element T)
	Subscribe(func(T) bool) uint64
	Unsubscribe(id uint64)
	Release()
}

Jump to

Keyboard shortcuts

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