commands

package
v0.0.0-...-79ab90b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 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 Command

type Command struct {
	Type CommandType `json:"type"`
}

func NewInitCommand

func NewInitCommand() Command

func ReadCommand

func ReadCommand(reader io.Reader) (Command, error)

func (Command) Bytes

func (c Command) Bytes() []byte

func (Command) String

func (c Command) String() string

type CommandType

type CommandType int8
const (
	TypeInit CommandType = iota
)

Jump to

Keyboard shortcuts

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