message

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMessageNotFound = errors.New("message not found")
)

Functions

func ReleaseMessage

func ReleaseMessage(m *Message)

Types

type Message

type Message struct {
	Name string
	KV   *kv.KV
}

func AcquireMessage

func AcquireMessage() *Message

func (*Message) Reset

func (m *Message) Reset()

type Messages

type Messages []*Message

func NewMessages

func NewMessages() *Messages

func (*Messages) Decode

func (m *Messages) Decode(buf []byte) error

func (*Messages) GetByIndex

func (m *Messages) GetByIndex(idx int) (*Message, error)

func (*Messages) GetByName

func (m *Messages) GetByName(name string) (*Message, error)

func (*Messages) Len

func (m *Messages) Len() int

func (*Messages) Reset

func (m *Messages) Reset()

Jump to

Keyboard shortcuts

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