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 ¶
func New ¶
func New(serviceID string) (KeyGenResult, error)
type PrefixedKey ¶
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
Click to show internal directories.
Click to hide internal directories.