utils

package
v0.2.2-alpha.0...-91a53d1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRankToken

func GenerateRankToken(userID string) string

func GenerateSignature

func GenerateSignature(data []byte) (sigVersion string, signedBody string)

func GenerateUUID

func GenerateUUID() (uuid string)

func WrapRequest

func WrapRequest(request *gorequest.SuperAgent) (resp gorequest.Response, body string, err []error)

Types

type RankTokenGenerator

type RankTokenGenerator struct{}

func (RankTokenGenerator) GenerateRankToken

func (generator RankTokenGenerator) GenerateRankToken(userID string) string

type SuperAgentPool

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

func NewSuperAgentPool

func NewSuperAgentPool(capacity int) (*SuperAgentPool, error)

func (*SuperAgentPool) Get

func (*SuperAgentPool) Len

func (p *SuperAgentPool) Len() int

func (*SuperAgentPool) Put

func (p *SuperAgentPool) Put(agent *gorequest.SuperAgent) error

Jump to

Keyboard shortcuts

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