util

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteNil

func DeleteNil(errs []error) (new []error)

DeleteNil deletes nil in errs

func DeleteRecordNotFound

func DeleteRecordNotFound(errs []error) (new []error)

DeleteRecordNotFound deletes gorm.ErrRecordNotFound in errs

func FetchURL

func FetchURL(url string, apiKey ...string) ([]byte, error)

FetchURL returns HTTP response body

func GenWorkers

func GenWorkers(num int) chan<- func()

GenWorkers :

func GetDefaultLogDir

func GetDefaultLogDir() string

GetDefaultLogDir :

func SetLogger

func SetLogger(logDir string, quiet, debug, logJSON bool)

SetLogger :

func WaitForRateLimit

func WaitForRateLimit(header http.Header) (err error)

WaitForRateLimit :

Types

This section is empty.

Jump to

Keyboard shortcuts

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