license

package
v0.2.50 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

License middleware for checking license expiry

func New

func New(contentApp *entity.Content, log loggers.Logger) *License

New creates a new License middleware

func (*License) CheckExpiry

func (l *License) CheckExpiry(next http.HandlerFunc) http.HandlerFunc

CheckExpiry middleware checks if the license has expired Returns 403 Forbidden with JSON error if license is expired

Jump to

Keyboard shortcuts

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