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

github

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 7 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)

type EnvTokenReader

type EnvTokenReader struct {
	VarName string
}

func (*EnvTokenReader) ReadToken

func (etr *EnvTokenReader) ReadToken() (string, error)

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