Versions in this module Expand all Collapse all v1 v1.2.5 Sep 23, 2024 Changes in this version + const TokenTypeBearer + func ClearObject(obj interface{}) + type AuditLogData struct + End time.Time + Err error + Method string + ReqBody []byte + ReqContentType string + ReqHeader http.Header + RespBody []byte + RespContentType string + RespHeader http.Header + Start time.Time + Status int + Url *url.URL + func (s *AuditLogData) GetEventTags() map[string]string + type Client struct + AuditLogFunc func(data *AuditLogData) + Debug bool + MidstreamFailChs map[string]chan bool + ParseErrorFunc func(resBody []byte) error + PrintTransformations bool + SkipVerify bool + TestTransport http.RoundTripper + Timeout time.Duration + TokenType string + func (s *Client) DisableMidstreamFailure(uri string) + func (s *Client) EnableMidstreamFailure(uri string, syncCh chan bool) + func (s *Client) EnablePrintTransformations() + func (s *Client) HandleWebsocketStreamOut(uri, token string, reader *bufio.Reader, reqData, replyData interface{}, ...) (int, error) + func (s *Client) HttpJsonSend(method, uri, token string, reqData interface{}, replyData interface{}, ...) (int, http.Header, error) + func (s *Client) HttpJsonSendReq(method, uri, token string, reqData interface{}, headerVals http.Header, ...) (*http.Response, error) + func (s *Client) PostJson(uri, token string, reqData interface{}, replyData interface{}, ...) (int, error) + func (s *Client) PostJsonSend(uri, token string, reqData interface{}, queryParams map[string]string) (*http.Response, error) + func (s *Client) PostJsonStreamOut(uri, token string, reqData, replyData interface{}, ...) (int, error) + func (s *Client) WebsocketConn(uri, token string, reqData interface{}) (*websocket.Conn, error) + type MultiPartFormData struct + func NewMultiPartFormData() *MultiPartFormData + func (s *MultiPartFormData) AddField(key string, val interface{}) + func (s *MultiPartFormData) AddFile(key string, val *os.File) + func (s *MultiPartFormData) Write(buf *bytes.Buffer) (string, error)