fetcher

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRequestHeader

func BuildRequestHeader(getHeader func(key string) string) map[string]string

BuildRequestHeader build request to avoid cors

func GetImagePartial

func GetImagePartial(url string, param *GetImageParam) (data []byte, err error)

GetImagePartial get the first few bytes of the given image url TODO apply rate limit by client

Types

type GetImageParam

type GetImageParam struct {
	RequestHeader map[string]string
}

Jump to

Keyboard shortcuts

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