http

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendToWebhook

func SendToWebhook(url string, body []byte, wg *sync.WaitGroup) error

Types

type Client

type Client interface {
	Post(url string, body []byte) (*Response, error)
	DeleteUrlCache(url string)
}

func NewClient

func NewClient(config *config.Config) Client

type Response

type Response struct {
	StatusCode int
	Body       *[]byte
}

Jump to

Keyboard shortcuts

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