Versions in this module Expand all Collapse all v1 v1.0.0 Nov 28, 2023 Changes in this version + var ErrGenerateNewApiKey = errors.New("error while generating new api key") + var ErrInvalidApiKey = errors.New("invalid api key") + var ErrParseApiKey = errors.New("error while parsing api key") + var ErrValidateApiKey = errors.New("error while validating api key") + type ApiKey struct + Checksum uint32 + Label string + Secret string + func NewApiKey(label string, length uint8) (ApiKey, error) + func ParseApiKey(key string) (ApiKey, error) + func (k ApiKey) String() string + func (k ApiKey) ValidateApiKey(key string) (bool, error)