debug

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolType = "debug"

	ActionPass            = "debug.pass"
	ActionSkip            = "debug.skip"
	ActionFail            = "debug.fail"
	ActionConnectionClose = "debug.connection_close"
	ActionTimeout         = "debug.timeout"
	ActionError           = "debug.error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	net.Conn
}

func NewConn

func NewConn(conn net.Conn) (*Conn, error)

func (*Conn) Close

func (conn *Conn) Close() error

func (*Conn) Init

func (conn *Conn) Init(param []byte) error

func (*Conn) Run

func (conn *Conn) Run(action string, param []byte) (interface{}, error)

func (*Conn) SetMode

func (conn *Conn) SetMode(server bool)

func (*Conn) SetTimeout

func (conn *Conn) SetTimeout(timeout time.Duration)

type Param

type Param struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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