Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // service name Name string // net type Net string // addr type Addr string // for etcd, like an uniqie id Id string // contains filtered or unexported fields }
Service represents a server instance (a server process), Any server can include more than one service, i.e, any server can be plugged into multile modules, like TcpServerTransport, UdpServerTransport, Broker, etc. By this way, we can implement more modules to extend server's abilities.
func NewService ¶
create a new server with option
Click to show internal directories.
Click to hide internal directories.