challenge

package
v0.0.0-...-fa7ad1f Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Challenge

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

func New

func New(opts ...Options) (*Challenge, error)

func (Challenge) Get

func (c Challenge) Get(request []byte) (string, string, error)

type Options

type Options func(*Challenge)

func WithEndpoint

func WithEndpoint(endpoint string) Options

type Response

type Response struct {
	Nonce    string `json:"challengeNonce"`
	Duration int    `json:"validDurationInMinutes"`
	Target   string `json:"largestAllowedHash"`
}

Jump to

Keyboard shortcuts

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