collect

package
v0.0.0-...-b724879 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright (c) 2023 RFull Development This source code is managed under the MIT license. See LICENSE in the project root.

Copyright (c) 2023 RFull Development This source code is managed under the MIT license. See LICENSE in the project root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Raw

type Raw interface {
	Download() ([]byte, error)
}

Raw is an interface for downloading raw data from a URL.

type Web

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

Web is a Raw implementation for downloading raw data from a Web.

func NewWeb

func NewWeb(url string) *Web

NewWeb creates a new Web instance.

func (*Web) Download

func (instance *Web) Download() ([]byte, error)

Download downloads raw data from a URL.

func (*Web) HttpClient

func (instance *Web) HttpClient() *http.Client

HttpClient returns a new http.Client instance.

func (*Web) SetTimeout

func (instance *Web) SetTimeout(value time.Duration)

SetTimeout sets the timeout for the Web instance.

Jump to

Keyboard shortcuts

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