waiter

package
v0.0.0-...-0fb6b60 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUuid

func GenerateUuid() string

func GetBytes

func GetBytes(d interface{}) ([]byte, error)

Types

type Callback

type Callback interface {
	Notify(data map[string][]byte, isTimeout bool) error
	GetType() CallbackType
}

type CallbackType

type CallbackType string

type WaitService

type WaitService interface {
	WaitOn(ctx context.Context, cb CallbackType, notifyIds ...string) error

	Done(ctx context.Context, notifyId string, data interface{}) error

	RegisterCallback(cb Callback) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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