minichat

package
v0.0.0-...-3634e44 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Blank = -2
	Date  = -1
)
View Source
const NoLimit = -1

Variables

This section is empty.

Functions

func FormatMessage

func FormatMessage(msg databases.Message, dir RouleauDir, csi bool) (lines int, vdt [][]byte)

func GetDateString

func GetDateString(lastMsg, newMsg time.Time) (str string)

func RunChatPage

func RunChatPage(m *minigo.Minitel, msgDB *databases.MessageDatabase, cntd *atomic.Int32, nick string, promMsgNb prometheus.Counter) (op int)

Types

type Cache

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

func NewCache

func NewCache() *Cache

func (*Cache) Bottom

func (c *Cache) Bottom(i int)

func (*Cache) MultBottom

func (c *Cache) MultBottom(i, mult int)

func (*Cache) MultTop

func (c *Cache) MultTop(i, mult int)

func (*Cache) Top

func (c *Cache) Top(i int)

type ChatLayout

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

func NewChatLayout

func NewChatLayout(mntl *minigo.Minitel, msgDB *databases.MessageDatabase, cntd *atomic.Int32, nick string) *ChatLayout

func (*ChatLayout) Init

func (c *ChatLayout) Init()

func (*ChatLayout) Update

func (c *ChatLayout) Update()

type RouleauDir

type RouleauDir uint
const (
	Up   RouleauDir = 0
	Down RouleauDir = 1
)

Jump to

Keyboard shortcuts

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