Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithLogger ¶
WithLogger sets the Translator's logger to a given logger. If given logger is nil then no logger is set and default settings apply.
type Translator ¶
type Translator struct {
// contains filtered or unexported fields
}
func NewTranslator ¶
func NewTranslator(grpcClient pb.AuthServiceClient, config Config, opts ...Option) *Translator
NewTranslator returns a new, initialized instance of the Translator. Run() has to be invoked before use. Logging is disabled by default unless a logger option is given.
func (*Translator) Run ¶
func (t *Translator) Run(ctx context.Context)
Run starts up necessary goroutines for automatic stream renewals and job handling. Blocks until given context is cancelled. It is intended to be invoked in a separate goroutine.
func (*Translator) TranslateAccessToken ¶
func (t *Translator) TranslateAccessToken(opaqueAccessToken string) (string, error)
TranslateAccessToken takes in an opaqueAccessToken and translates it to an encoded JWT token or returns a non-nil error.
Click to show internal directories.
Click to hide internal directories.