Help us shape the future of Go! Take the 2026 Go Developer Survey

message

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastMessage

type BroadcastMessage struct {
	ID              ID
	SenderID        user.ID
	SenderNameEnc   string
	SenderPublicKey string
	Body            string
	Envelopes       map[string]string
	SentAt          time.Time
}

BroadcastMessage is a message sent to all connected clients.

type BroadcastRepository

type BroadcastRepository interface {
	Save(ctx context.Context, msg BroadcastMessage) error
	ListRecent(ctx context.Context, limit int) ([]BroadcastMessage, error)
}

BroadcastRepository persists and retrieves broadcast messages.

type ID

type ID string

Jump to

Keyboard shortcuts

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