producer

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermCommandMsg

type PermCommandMsg struct {
	Command  string `json:"command"`
	Kind     string
	Resource string
	User     string
	Group    string
	Right    string
}

type ProcessCommand

type ProcessCommand struct {
	Command      string        `json:"command"`
	Id           string        `json:"id"`
	Owner        string        `json:"owner"`
	Processmodel model.Process `json:"processmodel"`
}

type Producer

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

func New

func New(ctx context.Context, conf config.Config) (*Producer, error)

func (*Producer) PublishDeleteUserRights

func (this *Producer) PublishDeleteUserRights(resource string, id string, userId string) error

func (*Producer) PublishProcessCommand

func (this *Producer) PublishProcessCommand(cmd ProcessCommand) error

func (*Producer) PublishProcessDelete

func (this *Producer) PublishProcessDelete(id string, userId string) error

func (*Producer) PublishProcessPut

func (this *Producer) PublishProcessPut(id string, userId string, process model.Process) error

Jump to

Keyboard shortcuts

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