utils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoHttpRequest

func DoHttpRequest(parsedUrl *url.URL, allowedHeaders []string, userAgent string) (int, map[string]string, []byte, error)

func ParseURL

func ParseURL(urlstr string) (*url.URL, error)

func ValidateToken added in v0.0.5

func ValidateToken(token string, url string, secret string, expiry int64) error

Types

type CliArgs added in v0.0.7

type CliArgs struct {
	LogLevel       log.Level
	CachingTime    time.Duration
	AllowedHeaders []string
	Secret         string
	Port           int
	UserAgent      string
}

func ParseCLIArgs added in v0.0.7

func ParseCLIArgs() (*CliArgs, error)

Jump to

Keyboard shortcuts

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