message

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	ID   interface{}
	Data []byte
	// contains filtered or unexported fields
}

Entry is the unpacked message object.

func (*Entry) Get

func (e *Entry) Get(key string) (value interface{}, exists bool)

Get retrieves the value according to the key.

func (*Entry) MustGet added in v0.0.6

func (e *Entry) MustGet(key string) interface{}

MustGet retrieves the value according to the key. Panics if key does not exist.

func (*Entry) Remove added in v0.0.7

func (e *Entry) Remove(key string)

Remove deletes the key from storage.

func (*Entry) Set

func (e *Entry) Set(key string, value interface{})

Set stores kv pair.

Jump to

Keyboard shortcuts

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