auth

package
v0.0.0-...-ca992e9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte) ([]byte, error)

func Encrypt

func Encrypt(data []byte) ([]byte, error)

func NewCrypt

func NewCrypt() (secret []byte, public []byte)

func RunAuthGet

func RunAuthGet(secret []byte, name string, callback func(auth *Auth, err error))

Types

type Auth

type Auth struct {
	UUID string `json:"id"`
	Name string `json:"name"`
	Prop []Prop `json:"properties"`
}

type Prop

type Prop struct {
	Name string  `json:"name"`
	Data string  `json:"value"`
	Sign *string `json:"signature"`
}

Jump to

Keyboard shortcuts

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