internal

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAckEvent

func IsAckEvent(event string) bool

func ToAckEvent

func ToAckEvent(event string) string

Types

type Ack

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

func NewAck

func NewAck(id uint64) *Ack

func (*Ack) Id

func (a *Ack) Id() uint64

func (*Ack) Notify

func (a *Ack) Notify(data []byte)

func (*Ack) Wait

func (a *Ack) Wait(ctx context.Context) ([]byte, error)

type Acks

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

func NewAcks

func NewAcks() *Acks

func (*Acks) DeleteAck

func (a *Acks) DeleteAck(ackId uint64)

func (*Acks) NextAck

func (a *Acks) NextAck() *Ack

func (*Acks) NotifyAck

func (a *Acks) NotifyAck(ackId uint64, data []byte)

type IdGenerator

type IdGenerator struct {
}

func NewIdGenerator

func NewIdGenerator() *IdGenerator

func (*IdGenerator) Next

func (g *IdGenerator) Next() string

type SequenceGenerator

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

func NewSequenceGenerator

func NewSequenceGenerator() *SequenceGenerator

func (*SequenceGenerator) Next

func (g *SequenceGenerator) Next() uint64

Jump to

Keyboard shortcuts

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