donewait

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

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncWait

func AsyncWait(ctx context.Context, msg DoneMsg, broker *signal.Broker) func() error

func SerializeDoneMsg

func SerializeDoneMsg(msg DoneMsg) string

func StartDoneWaitListener

func StartDoneWaitListener(ctx context.Context, kafkaConf kafka.Config, topics []string, broker *signal.Broker) (err error)

func WaitForDone

func WaitForDone(ctx context.Context, msg DoneMsg, broker *signal.Broker) error

Types

type DoneMsg

type DoneMsg struct {
	ResourceKind string `json:"resource_kind"`
	ResourceId   string `json:"resource_id"`
	Command      string `json:"command"` // PUT | DELETE | RIGHTS
	Handler      string `json:"handler"` // e.g. github.com/SENERGY-Platform/permission-search, may be empty in WaitForDone
}

Jump to

Keyboard shortcuts

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