http

package
v0.0.0-...-f9738e6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 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 Request

type Request interface {
	DisableLog() Request
	Option(fn RequestFunc) Request
	Get(url string) (*response, error)
	Post(url string, data any) (*response, error)
	PostJson(url string, data any) (*response, error)
	Put(url string, data any) (*response, error)
	PutJson(url string, data any) (*response, error)
	Delete(url string) (*response, error)
	Do() (*response, error)
}

func New

func New(conf *config.Http, logger *log.Helper) Request

func NewDefault

func NewDefault(logger *log.Helper) Request

type RequestFunc

type RequestFunc func(*resty.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳