Back to

Package revocation

Latest Go to latest

The latest major version is .

Published: Sep 22, 2020 | License: Apache-2.0 | Module:


Package revocation contains utilities for implementing token revocation.

Not really implemented for now.


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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier