chat

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeChatMessage

func MakeChatMessage(toUID, fromUID, chatroom, from, parent, text string) *cotproto.TakMessage

Types

type ChatMessage

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

func FromCot

func FromCot(c *cot.CotMessage) *ChatMessage

func (*ChatMessage) GetCallsignFrom

func (c *ChatMessage) GetCallsignFrom() string

func (*ChatMessage) GetChatroom

func (c *ChatMessage) GetChatroom() string

func (*ChatMessage) GetMessageID

func (c *ChatMessage) GetMessageID() string

func (*ChatMessage) GetText

func (c *ChatMessage) GetText() string

func (*ChatMessage) GetUIDFrom

func (c *ChatMessage) GetUIDFrom() string

func (*ChatMessage) GetUIDTo

func (c *ChatMessage) GetUIDTo() string

type Storage

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

func NewStorage

func NewStorage() *Storage

func (*Storage) Add

func (s *Storage) Add(c *ChatMessage)

func (*Storage) ForEach

func (s *Storage) ForEach(f func(c *ChatMessage) bool)

func (*Storage) GetFor

func (s *Storage) GetFor(item *model.Item, t time.Time) []*cot.CotMessage

func (*Storage) Start

func (s *Storage) Start() error

Jump to

Keyboard shortcuts

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