Documentation
¶
Index ¶
- func NewClient() rpc.Client
- type Client
- func (c *Client) BindCancelFunc(cancel context.CancelFunc)
- func (c *Client) Call(serviceMethod string, args *rpc.Args, reply *rpc.Reply) (err error)
- func (c *Client) Close() error
- func (c *Client) Dial(ctx context.Context, network, address string) error
- func (c *Client) DialDefault(ctx context.Context) error
- func (c *Client) GetFakeSource(uin int64) *fake.Source
- func (c *Client) GetNextSeq() int32
- func (c *Client) GetServerTime() int64
- func (c *Client) GetSession(uin int64) *rpc.Session
- func (c *Client) GetTickets(uin int64) *rpc.Tickets
- func (c *Client) Handle(serviceMethod string, reply *rpc.Reply) (*rpc.Args, error)
- func (c *Client) Register(serviceMethod string, handler rpc.Handler) error
- func (c *Client) SetSession(uin int64, tlvs map[uint16]tlv.Codec)
- func (c *Client) SetSessionAuth(uin int64, auth []byte)
- func (c *Client) SetSessionCookie(uin int64, cookie []byte)
- func (c *Client) SetTickets(uin int64, tlvs map[uint16]tlv.Codec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
func (*Client) BindCancelFunc ¶
func (c *Client) BindCancelFunc(cancel context.CancelFunc)
func (*Client) GetNextSeq ¶
func (*Client) GetServerTime ¶
func (*Client) SetSessionAuth ¶
func (*Client) SetSessionCookie ¶
Click to show internal directories.
Click to hide internal directories.