Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caller ¶
type Caller interface {
RequestWithContext(context.Context, string, string, io.Reader) (*http.Response, error)
}
Replaceable caller interface
type Client ¶
type Client struct {
Options Options
// contains filtered or unexported fields
}
func NewClientWithOptions ¶
type EnvTokenReader ¶
type EnvTokenReader struct {
VarName string
}
func (*EnvTokenReader) ReadToken ¶
func (etr *EnvTokenReader) ReadToken() (string, error)
type Factory ¶ added in v0.2.0
type Factory struct{}
func NewFactory ¶ added in v0.2.0
func NewFactory() *Factory
func (*Factory) CreateClient ¶ added in v0.2.0
func (*Factory) DefaultResponseHeaders ¶ added in v0.2.0
type Options ¶
type Options struct {
Host string
Token string
TokenReader TokenReader
}
type TokenReader ¶
Click to show internal directories.
Click to hide internal directories.