fetcher

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrJsonRequestFailed = errors.New("JSON request failed")
)

Functions

func GetJson

func GetJson(url string, bearerToken BearerToken, target interface{}) error

Types

type BearerToken

type BearerToken interface {
	AuthenticateAPI(request *http.Request) *http.Request
}

Jump to

Keyboard shortcuts

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