Documentation ¶
Index ¶
- Constants
- func Dial(network, address string) (*rpc.Client, error)
- func DialTimeout(network, address string, timeout time.Duration) (*rpc.Client, error)
- func NewClient(conn io.ReadWriteCloser) *rpc.Client
- func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec
- func NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec
- func TLSDialHTTP(network, address string, timeout time.Duration, config *tls.Config) (net.Conn, error)
Constants ¶
View Source
const Connected = "200 Connected to Go RPC"
Connected status response message for HTTP CONNECT to rpcPath.
Variables ¶
This section is empty.
Functions ¶
func DialTimeout ¶
DialTimeout connects to a Protobuf-RPC server at the specified network address.
func NewClient ¶
func NewClient(conn io.ReadWriteCloser) *rpc.Client
NewClient returns a new rpc.Client to handle requests to the set of services at the other end of the connection.
func NewClientCodec ¶
func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec
NewClientCodec returns a new rpc.ClientCodec using Protobuf-RPC on conn.
func NewServerCodec ¶
func NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec
NewServerCodec returns a serverCodec that communicates with the ClientCodec on the other end of the given conn.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.