message

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Add = iota
	Remove
	Stop
	Start
	Show
	Reload
)

Variables

View Source
var SockAddr = filepath.Join(os.TempDir(), "grass.sock")

Functions

This section is empty.

Types

type Msg

type Msg struct {
	Command int
	Args    string
}

func BuildMsg

func BuildMsg(command int, args string) *Msg

func UnMarshal

func UnMarshal(data []byte) *Msg

func (*Msg) Marshal

func (m *Msg) Marshal() []byte

Jump to

Keyboard shortcuts

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