processor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

	SetUsersAction    = "set_users"
	DeleteUsersAction = "delete_users"
)

Variables

This section is empty.

Functions

func CtxProcessorInstance

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

func NewProcessorAsInterface

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

Types

type Processor

type Processor interface {
	HandleGetUsersAction(msg data.ModulePayload) error
	HandleAddUserAction(msg data.ModulePayload) error
	HandleUpdateUserAction(msg data.ModulePayload) error
	HandleRemoveUserAction(msg data.ModulePayload) error
	HandleDeleteUserAction(msg data.ModulePayload) error
	HandleVerifyUserAction(msg data.ModulePayload) error
	SendDeleteUser(uuid string, user data.User) error
}

func ProcessorInstance

func ProcessorInstance(ctx context.Context) Processor

Jump to

Keyboard shortcuts

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