msf

package
v0.0.0-...-d9311aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() rpc.Client

Types

type Client

type Client struct {
	rpc.Sender
	// contains filtered or unexported fields
}

func (*Client) BindCancelFunc

func (c *Client) BindCancelFunc(cancel context.CancelFunc)

func (*Client) Call

func (c *Client) Call(serviceMethod string, args *rpc.Args, reply *rpc.Reply) (err error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Dial

func (c *Client) Dial(ctx context.Context, network, address string) error

func (*Client) DialDefault

func (c *Client) DialDefault(ctx context.Context) error

func (*Client) GetFakeSource

func (c *Client) GetFakeSource(uin int64) *fake.Source

func (*Client) GetNextSeq

func (c *Client) GetNextSeq() int32

func (*Client) GetServerTime

func (c *Client) GetServerTime() int64

func (*Client) GetSession

func (c *Client) GetSession(uin int64) *rpc.Session

func (*Client) GetTickets

func (c *Client) GetTickets(uin int64) *rpc.Tickets

func (*Client) Handle

func (c *Client) Handle(serviceMethod string, reply *rpc.Reply) (*rpc.Args, error)

func (*Client) Register

func (c *Client) Register(serviceMethod string, handler rpc.Handler) error

func (*Client) SetSession

func (c *Client) SetSession(uin int64, tlvs map[uint16]tlv.Codec)

func (*Client) SetSessionAuth

func (c *Client) SetSessionAuth(uin int64, auth []byte)

func (*Client) SetSessionCookie

func (c *Client) SetSessionCookie(uin int64, cookie []byte)

func (*Client) SetTickets

func (c *Client) SetTickets(uin int64, tlvs map[uint16]tlv.Codec)

Directories

Path Synopsis
rpc
tcp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL