token

package
v0.0.0-...-8bf0aa5 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExpiration

func GetExpiration(token string) (time.Time, error)

Types

type Signer

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

func NewSigner

func NewSigner(config *config.Config) *Signer

func (*Signer) NewToken

func (s *Signer) NewToken(agentId string) (string, error)

func (*Signer) ValidateRequest

func (s *Signer) ValidateRequest(ctx context.Context) (string, error)

func (*Signer) ValidateToken

func (s *Signer) ValidateToken(token string) (string, error)

Jump to

Keyboard shortcuts

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