command

package
v0.0.0-...-1aa142a Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 1 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 interface {
	Name() []byte
	Proc(cmd Command, msg protocol.Message) protocol.Message
	CheckArgc(argc int64) bool
	CheckReadonly() bool
	CheckForbidden() bool
}

func NewCommand

func NewCommand(
	name []byte,
	proc func(Command, protocol.Message) protocol.Message,
	arity int64,
	readonly bool,
	forbidden bool,
) Command

Jump to

Keyboard shortcuts

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