receiver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = data.ModuleName + "-receiver"

	AddUserAction    = "add_user"
	RemoveUserAction = "remove_user"
	VerifyUserAction = "verify_user"
	DeleteUserAction = "delete_user"

	RefreshModuleAction    = "refresh_module"
	RefreshSubmoduleAction = "refresh_submodule"
)

Variables

This section is empty.

Functions

func CtxReceiverInstance

func CtxReceiverInstance(entry interface{}, ctx context.Context) context.Context

func NewReceiverAsInterface

func NewReceiverAsInterface(cfg config.Config, ctx context.Context) interface{}

func RunReceiverAsInterface

func RunReceiverAsInterface(structure interface{}, ctx context.Context)

Types

type Receiver

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

func ReceiverInstance

func ReceiverInstance(ctx context.Context) *Receiver

func (*Receiver) HandleNewMessage

func (r *Receiver) HandleNewMessage(msg data.ModulePayload) error

func (*Receiver) Run

func (r *Receiver) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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