apikey

package
v0.0.0-...-9d4eb55 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKey

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

func NewApiKey

func NewApiKey(l *logger.Logger, salt []byte) *ApiKey

func (*ApiKey) CheckAPIKey

func (ak *ApiKey) CheckAPIKey(apikey string) (isValid, isRoot bool)

Client signature validation

key: client's secret key

Returns application id, key type.

Jump to

Keyboard shortcuts

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