Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client - request client for any REST API
func (*Client) Send ¶
Send sends request to REST server data interface{} - request payload, any interface for json.Marshal()
func (*Client) SetAuthToken ¶
SetAuthToken sets Bearer auth token for all requests
type ClientArgs ¶
type ClientArgs struct { Address string Log *logrus.Entry // InsecureSkipVerify controls whether a client verifies the server's certificate chain and host name. InsecureSkipVerify bool }
ClientArgs - params to create Client instance
Click to show internal directories.
Click to hide internal directories.