nacserv

package
v0.0.0-...-3bed8bd Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProviderNotReachable = errors.New("invalid registration code or provider not reachable")

Functions

This section is empty.

Types

type Client

type Client struct {
	URL   string
	Token string

	BeeperToken string

	IsRelay bool
}

func (*Client) FetchValidationData

func (c *Client) FetchValidationData(ctx context.Context) (*Response, error)

func (*Client) FetchVersions

func (c *Client) FetchVersions(ctx context.Context) (*ids.Versions, error)

type Response

type Response struct {
	Name       string        `json:"name"`
	Data       []byte        `json:"data"`
	ValidUntil time.Time     `json:"valid_until"`
	Versions   *ids.Versions `json:"versions"`
	Error      string        `json:"error"`
}

Jump to

Keyboard shortcuts

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