Documentation ¶
Index ¶
- func AesCBCDecrypt(encrypted_body []byte, key []byte, iv []byte) []byte
- func AesCBCEncrypt(body []byte, key []byte, iv []byte) []byte
- func AesFTECBDecrypt(encrypted_body []byte, key []byte) []byte
- func AesFTECBEncrypt(body []byte, key []byte) []byte
- func DefaultCallback(p *ResPack)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) ([]byte, error)
- func RsaDecrypt(encrypted_body []byte, key []byte) []byte
- func RsaEncrypt(body []byte, key []byte) []byte
- type Client
- func (c *Client) Async(protoID uint32, dopts ...adapt.Option) error
- func (c *Client) Close()
- func (c *Client) GetEncrypt() bool
- func (c *Client) Init() error
- func (c *Client) KeepAlive()
- func (c *Client) OK() bool
- func (c *Client) ProtoWtite(protoID uint32, dopts ...adapt.Option) (uint32, error)
- func (c *Client) Read() *ResPack
- func (c *Client) Sync(protoID uint32, dopts ...adapt.Option) adapt.Response
- type ResPack
- type Worker
- func (w *Worker) PrepareClient(cb func() *Client)
- func (w *Worker) Read()
- func (w *Worker) SetDefaultHandle(cb func(*ResPack))
- func (w *Worker) SetQuoteNotifyHandle(cb func(*ResPack))
- func (w *Worker) SetSysNotifyHandle(cb func(*ResPack))
- func (w *Worker) SetTrdNotifyHandle(cb func(*ResPack))
- func (w *Worker) Work()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
aes cbc解密
func DefaultCallback ¶
func DefaultCallback(p *ResPack)
func RsaDecrypt ¶
func RsaEncrypt ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetEncrypt ¶
func (*Client) ProtoWtite ¶
写一次
type Worker ¶
type Worker struct { OpenQuoteHand bool OpenTradeHand bool OpenSysHand bool OpenDefaultHand bool // contains filtered or unexported fields }
func (*Worker) PrepareClient ¶
func (*Worker) SetDefaultHandle ¶
func (*Worker) SetQuoteNotifyHandle ¶
func (*Worker) SetSysNotifyHandle ¶
func (*Worker) SetTrdNotifyHandle ¶
Click to show internal directories.
Click to hide internal directories.