satokengen

package
v0.0.0-testrgm3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GrafanaPrefix = "gl"

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInvalidApiKey

type ErrInvalidApiKey struct {
}

func (*ErrInvalidApiKey) Error

func (e *ErrInvalidApiKey) Error() string

func (*ErrInvalidApiKey) Unwrap

func (e *ErrInvalidApiKey) Unwrap() error

type KeyGenResult

type KeyGenResult struct {
	HashedKey    string
	ClientSecret string
}

func New

func New(serviceID string) (KeyGenResult, error)

type PrefixedKey

type PrefixedKey struct {
	ServiceID string
	Secret    string
	Checksum  string
}

func Decode

func Decode(keyString string) (*PrefixedKey, error)

func (*PrefixedKey) CalculateChecksum

func (p *PrefixedKey) CalculateChecksum() string

func (*PrefixedKey) Hash

func (p *PrefixedKey) Hash() (string, error)

func (*PrefixedKey) String

func (p *PrefixedKey) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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