lcs

package
v0.0.0-...-b877db6 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type License

type License struct {
	ID        primitive.ObjectID     `bson:"_id,omitempty" json:"id"`
	Headers   map[string]interface{} `bson:"headers" json:"headers"`
	Hash      string                 `bson:"hash" json:"-"`
	Token     string                 `bson:"token" json:"token"`
	Claims    jwt.MapClaims          `bson:"claims" json:"claims"`
	Active    bool                   `bson:"active" json:"active"`
	Signature config.Signature       `bson:"-" json:"-"`
	// contains filtered or unexported fields
}

func (*License) ApplyApp

func (l *License) ApplyApp(appName string) error

func (*License) Generate

func (l *License) Generate() error

func (*License) GetAlg

func (l *License) GetAlg() (alg string)

GetAlg returns alg defined in the license header.

func (*License) GetApp

func (l *License) GetApp(appName string) (*config.App, error)

func (*License) GetAppName

func (l *License) GetAppName() (appName string)

func (*License) IsLicenseValid

func (l *License) IsLicenseValid(tokenString string) (bool, error)

func (*License) LoadSignKey

func (l *License) LoadSignKey()

func (*License) LoadVerifyKey

func (l *License) LoadVerifyKey()

Jump to

Keyboard shortcuts

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