configs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemActionAdd    = "add"
	ItemActionChange = "change"
	ItemActionRemove = "remove"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Id    string
	Sum   string
	Flags []int
	Data  []byte
}

id|sum|flags|data

func NewItem

func NewItem() *Item

func UnmarshalItem

func UnmarshalItem(data []byte) *Item

func (*Item) Marshal

func (this *Item) Marshal() []byte

type ItemAction

type ItemAction struct {
	ItemId string
	Action ItemActionString
	Item   *Item
}

func NewItemAction

func NewItemAction(itemId string, action ItemActionString, item *Item) *ItemAction

type ItemActionString

type ItemActionString = string

Jump to

Keyboard shortcuts

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