token

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled

func IsEnabled(cfg *Config) bool

IsEnabled the config.

func NewGenerator

func NewGenerator(cfg *Config) token.Generator

NewGenerator for konfig.

Types

type Config

type Config struct {
	Key string `yaml:"key,omitempty" json:"key,omitempty" toml:"key,omitempty"`
}

Config for token.

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator for konfig.

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context) (context.Context, []byte, error)

Generate token from secret file.

Jump to

Keyboard shortcuts

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