licenses

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID string

type Level

type Level string
const (
	LevelInfo    Level = "info"
	LevelWarning Level = "warning"
	LevelError   Level = "error"
)

type License

type License struct {
	ID             ID        `db:"id" json:"id"`
	OrganizationID string    `db:"organization_id" json:"organizationId"`
	Key            string    `db:"key" json:"key"`
	CreatedAt      time.Time `db:"created_at" json:"createdAt"`
	ExpiresAt      time.Time `db:"expires_at" json:"expiresAt"`
	Seats          uint64    `db:"seats" json:"seats"`

	Status   Status     `db:"-" json:"status"`
	Messages []*Message `db:"-" json:"messages"`
}

type Message

type Message struct {
	Type  Type   `json:"type"`
	Level Level  `json:"level"`
	Text  string `json:"text"`
}

type Status

type Status string
const (
	StatusUnknown Status = "unknown"
	StatusValid   Status = "valid"
	StatusInvalid Status = "invalid"
)

type Type

type Type string
const (
	TypeNotification Type = "notification"
	TypeBanner       Type = "banner"
	TypeFullscreen   Type = "fullscreen"
)

Jump to

Keyboard shortcuts

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