licensecap

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

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InitPlusLicenseCapabilityEx = "InitPlusLicenseCapabilityEx"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capability

type Capability struct {
	Provider CapabilityEx

	Config *Config
	*logger.Logger
}

func (*Capability) GetConfigValidator

func (cap *Capability) GetConfigValidator() (v validator.Validator)

func (*Capability) GetInitFuncName

func (cap *Capability) GetInitFuncName() (name string)

func (*Capability) GetLicenseCapabilityEx

func (cap *Capability) GetLicenseCapabilityEx() (capEx CapabilityEx)

func (*Capability) InitProvider

func (cap *Capability) InitProvider(sym plugin.Symbol)

type CapabilityEx

type CapabilityEx interface {
	SetLicenseInfoAvailableNotifier(notifyFn LicenseInfoAvailableNotifier)
	LicenseInfoAvailable() (avail bool)

	IsTrialMode() (isTrial bool)
	GetLicenseInfo() (licenseInfo *PlusLicenseInfo)

	GetMaxClients() (maxClients int)
	GetMaxUsers() (maxUsers int)
}

type Config

type Config struct {
}

type LicenseInfoAvailableNotifier

type LicenseInfoAvailableNotifier func()

type PlusLicenseInfo

type PlusLicenseInfo struct {
	MaxClients int `json:"max_clients"`
	MaxUsers   int `json:"max_users"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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