Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
Result represents a simplified HTTP response payload.
func Request ¶
func Request( ctx context.Context, client Doer, method string, baseURL string, path string, token string, headers map[string]string, body io.Reader, ) (*Result, error)
Request issues an HTTP request against the provided endpoint. If the provided path is not absolute it is resolved against the base URL. Headers are merged with defaults where the caller provided values take precedence.
type StaticTokenSource ¶ added in v0.10.0
type StaticTokenSource struct {
// contains filtered or unexported fields
}
func NewStaticTokenSource ¶ added in v0.10.0
func NewStaticTokenSource(token string) StaticTokenSource
func (StaticTokenSource) Refreshable ¶ added in v0.10.0
func (s StaticTokenSource) Refreshable() bool
Click to show internal directories.
Click to hide internal directories.