Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenRetrieveFuncCtx ¶
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
Click to show internal directories.
Click to hide internal directories.