http_client

package
v0.0.0-...-0e50a25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxConnPerHost = &env.Env.MaxConnsPerHost
View Source
var MaxConnWaitTimeout = &env.Env.MaxConnWaitTimeout
View Source
var MaxIdempotentCallAttempts = &env.Env.MaxIdempotentCallAttempts
View Source
var NetClient fasthttp.Client
View Source
var ReadTimeout = &env.Env.ReadTimeout

Functions

func Init

func Init()

func SendGetRequest

func SendGetRequest(url string) (int, []byte, error)

Types

type Fetcher

type Fetcher struct {
	// contains filtered or unexported fields
}

func NewFetcher

func NewFetcher(providerService interfaces.IProviderService, taskService interfaces.ITaskService) *Fetcher

func (*Fetcher) FetchTasks

func (s *Fetcher) FetchTasks(ctx context.Context, provider *entity.Provider) error

func (*Fetcher) FetchTasksFromMongo

func (s *Fetcher) FetchTasksFromMongo(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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