sender

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendRequests

func SendRequests(input <-chan Request, workers int) <-chan RequestResponse

SendRequests takes requests from the input channel, sends them to the corresponding endpoint, and puts the result in the output channel.

Types

type Request

type Request struct {
	Url     string
	Method  string
	Headers string
	Body    string

	UserUrl string
	Hash    uint64
}

func (Request) String

func (r Request) String() string

type RequestResponse

type RequestResponse struct {
	Request  Request
	Response Response
}

type Response

type Response struct {
	Status string
	Body   string
}

Jump to

Keyboard shortcuts

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