history

package
v0.0.0-...-dea11c1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

type History struct {
	Messages []*messages.ServerTextMessageObject
}

func NewHistory

func NewHistory(size int) *History

func (*History) AddMessage

func (h *History) AddMessage(message *messages.ServerTextMessageObject)

func (*History) GetMessages

func (h *History) GetMessages() []*messages.ServerTextMessageObject

Jump to

Keyboard shortcuts

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