api

package
v0.0.0-...-a15fc98 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidSigningURIProvided = fmt.Errorf("invalid signing uri provided")

Functions

This section is empty.

Types

type API

type API struct {
	Name string
	UUID uuid.UUID
	URL  *url.URL
}

func New

func New(name, uri string) *API

func (API) Sign

func (A API) Sign(uri string) (uuid.UUID, error)

func (API) Validate

func (A API) Validate(id, uri string) bool

Jump to

Keyboard shortcuts

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