utils

package
v0.0.0-...-6af0856 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetcherResult

type FetcherResult[R interface{}] struct {
	Status     int
	Ok         bool
	ParsedBody ParsedBody[R]
	Response   *http.Response
	TimeTaken  time.Duration
}

func Fetcher

func Fetcher[B interface{}, R interface{}](method, url string, body *B, headers map[string]string) (*FetcherResult[R], error)

type Key

type Key string

type Map

type Map[T interface{}] map[string]T

type ParsedBody

type ParsedBody[R interface{}] struct {
	Text  string
	Json  R
	Bytes []byte
	Type  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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