package
0.0.0-20241212193129-31f37f7e77a3
Repository: https://github.com/thingspect/atlas.git
Documentation: pkg.go.dev
# Functions
FromContext returns the Session value stored in a Context, if any.
GenerateKeyToken generates an encrypted protobuf API key token in raw (no padding) base64 format.
GeneratePageToken generates a page token in raw (no padding), URL-safe base64 format.
GenerateWebToken generates an encrypted protobuf web token in raw (no padding) base64 format.
NewContext returns a new Context that carries a Session.
ParsePageToken parses a page token in raw (no padding), URL-safe base64 format, or an empty string.
ValidateWebToken validates an encrypted protobuf web or API key token.
# Constants
WebTokenExp represents the lifetime of a web token in seconds.