Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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 NewClient

func NewClient() (*Client, error)

func NewClientWithOptions

func NewClientWithOptions(opts Options) (*Client, error)

func (*Client) Call

func (c *Client) Call(ctx context.Context, method, path string, body io.Reader) (*http.Response, error)

func (*Client) Platform added in v0.2.0

func (c *Client) Platform() platform.Type

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 (f *Factory) CreateClient() (platform.Client, error)

func (*Factory) DefaultResponseHeaders added in v0.2.0

func (f *Factory) DefaultResponseHeaders() []string

func (*Factory) Platform added in v0.2.0

func (f *Factory) Platform() platform.Type

type Options

type Options struct {
	Host        string
	Token       string
	TokenReader TokenReader
}

type TokenReader

type TokenReader interface {
	ReadToken() (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL