Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestEquinoxConfig ¶ added in v0.5.0
func NewTestEquinoxConfig() *api.EquinoxConfig
Creates an EquinoxConfig for tests.
Types ¶
type InternalClient ¶
func NewInternalClient ¶ added in v0.2.0
func NewInternalClient(config *api.EquinoxConfig) *InternalClient
Returns a new client using the API key provided.
func (*InternalClient) Do ¶ added in v0.3.0
func (i *InternalClient) Do(method string, route interface{}, endpoint string, requestBody io.Reader, object interface{}, authorizationHeader string) error
Executes a http request.
func (*InternalClient) Logger ¶ added in v0.7.0
func (c *InternalClient) Logger(client string) *zap.SugaredLogger
func (*InternalClient) NewRequest ¶ added in v0.2.2
func (i *InternalClient) NewRequest(method string, url string, body io.Reader) (*http.Request, error)
Creates a new *http.Request and sets headers.
Click to show internal directories.
Click to hide internal directories.