Back to godoc.org

Package revocation

v0.0.0-...-5f48781
Latest Go to latest

The latest major version is .

Published: Sep 22, 2020 | License: Apache-2.0 | Module: go.chromium.org/luci

Overview

Package revocation contains utilities for implementing token revocation.

Not really implemented for now.

Index

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