commands

package
v0.0.0-...-0451d2a Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SaveMessageCommandType icommands.Type = "save_message"
)

Variables

View Source
var (
	ErrInvalidCommandType = errors.New("invalid command type")
)

Functions

This section is empty.

Types

type SaveMessageCommand

type SaveMessageCommand struct {
	ID          string
	RoomID      string
	UserID      string
	Text        string
	Metadata    messages.Metadata
	PublishedAt time.Time
}

func (SaveMessageCommand) Type

type SaveMessageCommandHandler

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

func NewSaveMessageCommandHandler

func NewSaveMessageCommandHandler(idp idn.Provider, stge messages.Storage, pub pubsub.Publisher, logger *zerolog.Logger) *SaveMessageCommandHandler

func (*SaveMessageCommandHandler) Handle

Jump to

Keyboard shortcuts

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