Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvTest = config.EnvTest EnvLive = config.EnvLive )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseURLType ¶
type BaseURLType string
type DefaultClient ¶
func New ¶
func New(projectID string, secret string) *DefaultClient
func (*DefaultClient) GetConfig ¶
func (c *DefaultClient) GetConfig() *config.Config
func (*DefaultClient) GetHTTPClient ¶
func (c *DefaultClient) GetHTTPClient() *http.Client
func (*DefaultClient) NewRequest ¶
func (c *DefaultClient) NewRequest( ctx context.Context, params RequestParams, ) error
newRequest is used by Call to generate and Do a http.Request
func (*DefaultClient) RawRequest ¶
func (c *DefaultClient) RawRequest( ctx context.Context, params RequestParams, ) ([]byte, error)
RawRequest sends the request and returns the successful response body as bytes. If the response is an error, the response body will be parsed and returned as (nil, stytcherror.Error).
Prefer using NewRequest (which unmarshals the response JSON) unless you need the actual bytes.
type RequestParams ¶
Click to show internal directories.
Click to hide internal directories.