Documentation ¶
Index ¶
- type BitgetBaseWsClient
- func (p *BitgetBaseWsClient) CheckSum(jsonMap map[string]interface{}) bool
- func (p *BitgetBaseWsClient) Connect()
- func (p *BitgetBaseWsClient) ConnectWebSocket()
- func (p *BitgetBaseWsClient) DisconnectWebSocket()
- func (p *BitgetBaseWsClient) ExecuterPing()
- func (p *BitgetBaseWsClient) GetListener(argJson interface{}) OnReceive
- func (p *BitgetBaseWsClient) Init() *BitgetBaseWsClient
- func (p *BitgetBaseWsClient) Login()
- func (p *BitgetBaseWsClient) ReadLoop()
- func (p *BitgetBaseWsClient) Send(data string)
- func (p *BitgetBaseWsClient) SendByType(req model.WsBaseReq)
- func (p *BitgetBaseWsClient) SetListener(msgListener OnReceive, errorListener OnReceive)
- func (p *BitgetBaseWsClient) StartReadLoop()
- type BitgetRestClient
- type CommonResponse
- type OnReceive
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitgetBaseWsClient ¶
type BitgetBaseWsClient struct { NeedLogin bool Connection bool LoginStatus bool Listener OnReceive ErrorListener OnReceive Ticker *time.Ticker SendMutex *sync.Mutex WebSocketClient *websocket.Conn LastReceivedTime time.Time AllSuribe *model.Set Signer *Signer ScribeMap map[model.SubscribeReq]OnReceive BooksMap map[model.SubscribeReq]model.BookInfo }
func (*BitgetBaseWsClient) CheckSum ¶
func (p *BitgetBaseWsClient) CheckSum(jsonMap map[string]interface{}) bool
func (*BitgetBaseWsClient) Connect ¶
func (p *BitgetBaseWsClient) Connect()
func (*BitgetBaseWsClient) ConnectWebSocket ¶
func (p *BitgetBaseWsClient) ConnectWebSocket()
func (*BitgetBaseWsClient) DisconnectWebSocket ¶
func (p *BitgetBaseWsClient) DisconnectWebSocket()
func (*BitgetBaseWsClient) ExecuterPing ¶
func (p *BitgetBaseWsClient) ExecuterPing()
func (*BitgetBaseWsClient) GetListener ¶
func (p *BitgetBaseWsClient) GetListener(argJson interface{}) OnReceive
func (*BitgetBaseWsClient) Init ¶
func (p *BitgetBaseWsClient) Init() *BitgetBaseWsClient
func (*BitgetBaseWsClient) Login ¶
func (p *BitgetBaseWsClient) Login()
func (*BitgetBaseWsClient) ReadLoop ¶
func (p *BitgetBaseWsClient) ReadLoop()
func (*BitgetBaseWsClient) Send ¶
func (p *BitgetBaseWsClient) Send(data string)
func (*BitgetBaseWsClient) SendByType ¶
func (p *BitgetBaseWsClient) SendByType(req model.WsBaseReq)
func (*BitgetBaseWsClient) SetListener ¶
func (p *BitgetBaseWsClient) SetListener(msgListener OnReceive, errorListener OnReceive)
func (*BitgetBaseWsClient) StartReadLoop ¶
func (p *BitgetBaseWsClient) StartReadLoop()
type BitgetRestClient ¶
type BitgetRestClient struct { ApiKey string ApiSecretKey string Passphrase string BaseUrl string HttpClient *http.Client Signer *Signer }
func (*BitgetRestClient) DoPost ¶
func (p *BitgetRestClient) DoPost(uri string, params string) (string, error)
func (*BitgetRestClient) Init ¶
func (p *BitgetRestClient) Init() *BitgetRestClient
func (*BitgetRestClient) InitWithCreds ¶
func (p *BitgetRestClient) InitWithCreds(creds *config.ApiCreds) *BitgetRestClient
type CommonResponse ¶
Click to show internal directories.
Click to hide internal directories.