msgbus

package
v1.23.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 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 MsgBusClient

type MsgBusClient struct {
	Database *database.Database
	// contains filtered or unexported fields
}

func NewMessageBusClient

func NewMessageBusClient(database *database.Database, options *msgbus.Options) *MsgBusClient

func (*MsgBusClient) Send

func (cli *MsgBusClient) Send(msgreq *MsgRequest)

type MsgRequest

type MsgRequest struct {
	msgbus.MessageType
	msgbus.ResourceType
	msgbus.EventKind

	Username      string
	Authorization string
	ResourceID    uint
	Detail        string

	ToUsers       *set.Set[uint]
	AffectedUsers *set.Set[uint]
}

Jump to

Keyboard shortcuts

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