licence

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Licence

type Licence struct {
	ID       string `json:"id"`
	Code     string `json:"-"`
	Domain   string `json:"domain"`
	Valid    bool   `json:"valid"`
	Features struct {
		MultiTenancy bool `json:"multiTenancy"`
		Billing      bool `json:"billing"`
		Helpdesk     bool `json:"helpdesk"`
	} `json:"features"`
	Limits struct {
		Accounts  int `json:"accounts"`
		Customers int `json:"customers"`
		Services  int `json:"services"`
	} `json:"limits"`
	ExpiresAt   interface{} `json:"expires_at"`
	LicenceData string      `json:"licence_data"`
	// contains filtered or unexported fields
}

func New

func New(id, code string) (*Licence, error)

func (*Licence) StartStatsReporter

func (l *Licence) StartStatsReporter(db *database.Database) error

func (*Licence) Store

func (l *Licence) Store(fileName string) error

Jump to

Keyboard shortcuts

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