rester

package
v0.0.0-...-afa1830 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBasicAuthHeader

func GetBasicAuthHeader(username, password string) string

GetBasicAuthHeader ...

Types

type Client

type Client interface {
	Get(ctx context.Context, route string, params url.Values, output interface{}) error
	Head(ctx context.Context, route string, params url.Values, output map[string][]string) error
	Post(ctx context.Context, route string, params url.Values, input interface{}, output interface{}) error
	Put(ctx context.Context, route string, params url.Values, input interface{}, output interface{}) error
	Patch(ctx context.Context, route string, input interface{}) error
	Delete(ctx context.Context, route string, params url.Values) error
}

Client ...

type ContextKey

type ContextKey string

ContextKey ...

const HeadersContextKey ContextKey = "headers"

HeadersContextKey ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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