producer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0, Apache-2.0 Imports: 8 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 Producer

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

func New

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

func (*Producer) PublishDeleteUserRights

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

func (*Producer) PublishImportType

func (this *Producer) PublishImportType(importType model.ImportType, userId string) error

func (*Producer) PublishImportTypeCommand

func (this *Producer) PublishImportTypeCommand(cmd source.ImportTypeCommand) error

func (*Producer) PublishImportTypeDelete

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

func (*Producer) PublishPermissionCommand

func (this *Producer) PublishPermissionCommand(cmd PermCommandMsg) error

Jump to

Keyboard shortcuts

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