client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToV1RecordType

func ToV1RecordType(t string) v1.RecordType

Types

type AddHeaderTransport added in v0.2.0

type AddHeaderTransport struct {
	Token string
	T     http.RoundTripper
	// contains filtered or unexported fields
}

func (*AddHeaderTransport) RoundTrip added in v0.2.0

func (a *AddHeaderTransport) RoundTrip(req *http.Request) (*http.Response, error)

type Client

Client defines the client API

func New added in v0.2.0

func New(ctx context.Context, config DialConfig) Client

type DialConfig

type DialConfig struct {
	BaseURL string
	Token   string
	Log     *zap.SugaredLogger
	Debug   bool

	UserAgent string
}

DialConfig is the configuration to create a api-server connection

func (*DialConfig) HttpClient added in v0.2.0

func (d *DialConfig) HttpClient() *http.Client

Jump to

Keyboard shortcuts

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