instance

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: GPL-3.0 Imports: 0 Imported by: 9

Documentation

Index

Constants

View Source
const NON_INSTANCE_NAME = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies []ID

func (*Dependencies) Add

func (d *Dependencies) Add(id ID)

func (*Dependencies) Compare

func (d *Dependencies) Compare(od Dependencies) (ot, oo, b Dependencies)

func (*Dependencies) Delete

func (d *Dependencies) Delete(id ID)

type DependencyInstance

type DependencyInstance interface {
	ID() ID
}

type DependentInstance

type DependentInstance interface {
	GetDependentInstance(ID) DependencyInstance
}

type DependingInstance

type DependingInstance interface {
	Dependencies() Dependencies
	SetDependency(DependencyInstance)
	UnsetDependency(ID)
	OnServiceListChanged()
	// functions below will only be called on instance creation and will not be called again
	SetServiceListGetter(func() []string)
	SetDependenciesChangedHandler(func())
}

type ErrorFunc

type ErrorFunc func(...interface{})

type ForceStoppableInstance

type ForceStoppableInstance interface {
	ForceStop() //this should just stop threads and clean up fast
}

type ID

type ID struct {
	Name     string //service name
	Instance string
}

func (ID) String

func (id ID) String() string

type Instance

type Instance interface {
	Start()
	Stop()
	ID() ID
}

type LoggerFunc

type LoggerFunc func(...interface{})

type ManagingInstance

type ManagingInstance interface {
	SetServiceManager(ServiceManager)
}

type SelfKillFunc

type SelfKillFunc func()

type ServiceManager

type ServiceManager interface {
	LoadFromPlugin(path string) error
}

Jump to

Keyboard shortcuts

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