Documentation ¶
Index ¶
Constants ¶
View Source
const ( MAX_TOTAL_CHAN_SIZE = 1024 MAX_SINGLE_CHAN_SIZE = 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Options ¶
type Options struct { ID int64 `flag:"node-id" cfg:"id"` TCPAddress string `flag:"tcp-address"` ApiTCPAddress string `flag:"api-tcp-address"` ApiHTTPAddress string `flag:"api-http-address"` Optserials []serial.OptionSerial `flag:"option-serial"` DataPath string `flag:"data-path"` BroadcastAddress string `flag:"broadcast-address"` }
func NewOptions ¶
func NewOptions() *Options
type VINED ¶
type VINED struct { ClientConnChan map[string]chan string //key string is:client ip address,value string is serial portname MsgTxChan map[string]chan []byte //key string is:serial port name,value is rx or tx serial data MsgRxChan map[string]chan []byte MessageTotalRxChan chan Message MessageTotalTxChan chan Message ApiTCPConn map[net.Conn]string //key string si :api tcp client conn,value is serial port name // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.