Documentation ¶
Index ¶
- Constants
- type Args
- type Call
- type Client
- func (c *Client) Call(serviceMethod string, args *Args, reply *Reply) error
- func (c *Client) Close() error
- func (c *Client) Go(serviceMethod string, args *Args, reply *Reply, done chan *Call) *Call
- func (c *Client) UploadFile(uin int64, cmd int32, name string, ticket []byte) error
- func (c *Client) UploadReadSeeker(uin int64, cmd int32, r io.ReadSeeker, ticket []byte) error
- func (c *Client) UploadReader(uin int64, cmd int32, size int64, r io.Reader, digest, ticket []byte) error
- type Codec
- type Reply
- type Request
- type Response
Constants ¶
View Source
const ( ServiceMethodEcho = "PicUp.Echo" ServiceMethodUpload = "PicUp.DataUp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(conn io.ReadWriteCloser) *Client
func (*Client) UploadFile ¶
func (*Client) UploadReadSeeker ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
func NewCodec ¶
func NewCodec(conn io.ReadWriteCloser) *Codec
func (*Codec) ReadResponseBody ¶
func (*Codec) ReadResponseHeader ¶
Click to show internal directories.
Click to hide internal directories.