retrieve

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MPL-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenRetrieveFuncCtx

type TokenRetrieveFuncCtx func(ctx context.Context) (string, error)

TokenRetrieveFuncCtx type of function to retrieve a token passing-in a context

func NewTokenRetrieveFunc

func NewTokenRetrieveFunc(channelInterface common.TokenChannelInterface) TokenRetrieveFuncCtx

NewTokenRetrieveFunc takes a common.TokenChannelInterface as an input and returns a TokenRetrieveFuncCtx. Exit from loop if a token is received on resCh, or if the context passed-in is cancelled. On cancellation of context a signal is sent on exitCh to tell the token Handler retrieve thread to exit

Jump to

Keyboard shortcuts

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