revocation

package
v0.0.0-...-864d242 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Overview

Package revocation contains utilities for implementing token revocation.

Not really implemented for now.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTokenID

func GenerateTokenID(c context.Context, kind string) (int64, error)

GenerateTokenID produces an int64 that can be used as a token identifier.

We reuse datastore ID generator to produce token ids. The tokens are not actually stored in the datastore. The generated ID sequence is associated with some entity kind (indicated via 'kind'). If we ever need to restart the ID sequence, this kind can be changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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