instance

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = errors.New("instance error")

Functions

This section is empty.

Types

type ID added in v0.25.0

type ID string

func NewID added in v0.25.0

func NewID() ID

func (ID) String added in v0.25.0

func (id ID) String() string

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

func New

func New(sess *session.Context) (*Instance, error)

New creates a new instance for the application.

func (*Instance) Dispose added in v0.25.0

func (inst *Instance) Dispose() error

type Settings

type Settings struct {
	// How many instances of the applications can be booted at the same time.
	Max settings.Uint `key:"max" default:"1" desc:"Maximum number of instances of the application that can be booted at the same time"`
}

func (Settings) Blueprint

func (s Settings) Blueprint() (*settings.Blueprint, error)

Jump to

Keyboard shortcuts

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