update

package
v1.20.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duplicate

type Duplicate bool

type Registry

type Registry interface {
	Add(request *updatepb.Request) (*Update, Duplicate, RemoveFunc)

	CreateOutgoingMessages(startedEventID int64) ([]*protocolpb.Message, error)

	HasPending(filterMessages []*protocolpb.Message) bool
	ProcessIncomingMessages(messages []*protocolpb.Message) error

	Clear()
}

type RegistryImpl

type RegistryImpl struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *RegistryImpl

func (*RegistryImpl) Add

func (r *RegistryImpl) Add(request *updatepb.Request) (*Update, Duplicate, RemoveFunc)

func (*RegistryImpl) Clear

func (r *RegistryImpl) Clear()

func (*RegistryImpl) CreateOutgoingMessages

func (r *RegistryImpl) CreateOutgoingMessages(startedEventID int64) ([]*protocolpb.Message, error)

func (*RegistryImpl) HasPending

func (r *RegistryImpl) HasPending(filterMessages []*protocolpb.Message) bool

func (*RegistryImpl) ProcessIncomingMessages

func (r *RegistryImpl) ProcessIncomingMessages(messages []*protocolpb.Message) error

type RemoveFunc

type RemoveFunc func()

type Update

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

func (*Update) WaitOutcome

func (u *Update) WaitOutcome(ctx context.Context) (*updatepb.Outcome, error)

Jump to

Keyboard shortcuts

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