history

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message added in v0.0.11

type Message struct {
	Content string     `json:"content"`
	Meta    types.Meta `json:"meta"`
}

type MessageType added in v0.0.11

type MessageType string

type RAM added in v0.0.11

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

***** History RAM implementation *****

func NewHistoryRAM added in v0.0.11

func NewHistoryRAM() *RAM

func (*RAM) Add added in v0.0.11

func (h *RAM) Add(content string, meta types.Meta) error

func (*RAM) All added in v0.0.11

func (h *RAM) All() []Message

func (*RAM) Clear added in v0.0.11

func (h *RAM) Clear()

Jump to

Keyboard shortcuts

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