utils

package
v0.14.8 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchConfig

type FetchConfig struct {
	UserAgent string
	Mime      string

	EnableEtags bool
	// contains filtered or unexported fields
}

func NewFetchConfig

func NewFetchConfig() *FetchConfig

func (*FetchConfig) FetchFile

func (c *FetchConfig) FetchFile(file string) ([]byte, int, bool, error)

type HttpNotModified

type HttpNotModified struct {
	File string
}

func (HttpNotModified) Error

func (e HttpNotModified) Error() string

type IdenticalEtag

type IdenticalEtag struct {
	File string
	Etag string
}

func (IdenticalEtag) Error

func (e IdenticalEtag) Error() string

Jump to

Keyboard shortcuts

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