common

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MPL-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

View Source
const (
	TokenRetrieveFunctionKey = "tokenRetrieveFunc"
	// TimeToTokenExpiry is seconds in int64, not time.Second
	// This constant should be used in all handler code
	TimeToTokenExpiry = 120
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Token string
	Err   error
}

Result the result struct sent back on the resultCh of a token Handler

type TokenChannelInterface

type TokenChannelInterface interface {
	TokenChannels() (chan Result, chan int)
}

TokenChannelInterface the interface that is implemented by a token Handler This interface is used in retrieve.NewTokenRetrieveFunc

Jump to

Keyboard shortcuts

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