Documentation ¶
Index ¶
- Variables
- type Call
- type Client
- func Dial(network string, address string, opts ...*codec.Option) (client *Client, err error)
- func DialDefineFunc(f func(net.Conn, *codec.Option) (client *Client, err error), network string, ...) (client *Client, err error)
- func DialHTTP(network string, address string, opts ...*codec.Option) (*Client, error)
- func NewClient(conn net.Conn, opt *codec.Option) (*Client, error)
- func NewHTTPClient(conn net.Conn, opt *codec.Option) (*Client, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrShutDown = errors.New("connection is shut down")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func DialDefineFunc ¶
func NewHTTPClient ¶
the httpClient only add http protocol processing to the original newclient architecture
func (*Client) Call ¶
func (client *Client) Call(ctx context.Context, servericeMethod string, args, reply interface{}) error
use context.WithTimeout context object to controll call TimeOut
func (*Client) IsAvailable ¶
Click to show internal directories.
Click to hide internal directories.