Documentation ¶
Overview ¶
Package config is the utility function that keeps the client-server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TargetToClient ¶
TargetToClient gets the ZMQ counter-part of the target. Returns zmq.REQ if target is not supported. Returns zmq.REQ for zmq.ROUTER and zmq.REP
Types ¶
type Client ¶
type Client struct { ServiceUrl string `json:"url" yaml:"url"` // Url link of the service Id string `json:"id" yaml:"id"` Port uint64 `json:"port" yaml:"port"` TargetType zmq.Type `json:"zmq_type,omitempty" yaml:"zmq_type,omitempty"` // The service's socket type // contains filtered or unexported fields }
A Client parameters to connect to the dep
Click to show internal directories.
Click to hide internal directories.