package
0.0.0-20190422025920-beccf3fe4313
Repository: https://github.com/changwh/go-common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Accept accepts connections on the listener and serves requests to DefaultServer for each incoming connection.
Dial connects to an RPC server at the specified network address.
NewDiscoveryCli new discovery client.
NewServer new a rpc server.
Register publishes the receiver's methods in the DefaultServer.
RegisterName is like Register but uses the provided name for the type instead of the receiver's concrete type.
ServeConn runs the DefaultServer on a single connection.

# Variables

DefaultServer is the default instance of *Server.
ErrNoClient current no rpc client.
ErrShutdown shutdown error.

# Structs

Auth handshake struct.
Call represents an active RPC.
Client wrapper is a client holder with implements pinger.
Client2 support for load balancing and service discovery.
ClientConfig rpc client config.
Request is a header written before every RPC call.
Response is a header written before every RPC return.
Server represents an RPC Server.
ServerConfig rpc server settings.
TraceInfo propagate trace propagate gorpc call.

# Interfaces

Interceptor interface.

# Type aliases

ServerError represents an error that has been returned from the remote side of the RPC connection.