util

package
v0.0.0-...-2d539fd Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDomain

func GetDomain(url *url.URL) string

func NewTaskpool

func NewTaskpool(conf *nbhttp.Config) *taskpool.MixedPool

Types

type Crawler

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

func NewCrawler

func NewCrawler() *Crawler

func (*Crawler) Get

func (c *Crawler) Get(url string) (*resource.MediaItemInfo, error)

type JWT

type JWT struct {
	PublicKey *rsa.PublicKey
}

func (*JWT) Parse

func (j *JWT) Parse(tokenStr string) (jwt.MapClaims, error)

Jump to

Keyboard shortcuts

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