unit

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(addr string, timeout time.Duration) *unit

addr is the address(ip:port) of unit, timeout is the read/write timeout period of the unit

Types

type Unit

type Unit interface {
	Close()
	Send(string, interface{}) error
	SendAndRecv(string, interface{}) (*protocol.Message, error)
}

worker unit

Jump to

Keyboard shortcuts

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