lib_gc_container

package
v0.0.0-...-215c2c3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerStatus

type ContainerStatus int
const (
	CONTAINER_STATUS_STARTED  ContainerStatus = 1
	CONTAINER_STATUS_STOPPED  ContainerStatus = 2
	CONTAINER_STATUS_SHUTDOWN ContainerStatus = 3
)

type Contents

type Contents struct {
	Container      IGenericContainer
	Status         ContainerStatus
	StatusListener IContainerStatusListener
}

func (*Contents) Shutdown

func (contents *Contents) Shutdown() error

func (*Contents) Start

func (contents *Contents) Start() error

func (*Contents) Stop

func (contents *Contents) Stop() error

func (*Contents) WaitForStatusChanges

func (contents *Contents) WaitForStatusChanges()

type IContainerStatusListener

type IContainerStatusListener interface {
	Start() error
	Stop() error
	Shutdown() error
}

type IGenericContainer

type IGenericContainer interface {
	GetName() string
	GetWg() *sync.WaitGroup
	AddItem(string, IGenericContents) error
	GetItem(string) (IGenericContents, error)
	IsItemActivated(string) bool
	GetContainerStatusChannels() (ShutdownChan, StartChan, StopChan)
	AddParameter(string, interface{})
	GetParameter(string) (interface{}, error)
	IContainerStatusListener
}

type IGenericContainerFactory

type IGenericContainerFactory interface {
	GetContainer(activated_items []string, name string) (IGenericContainer, error)
}
var GenericContainerFactory IGenericContainerFactory

type IGenericContainerGetter

type IGenericContainerGetter interface {
	GetGenericContainer() IGenericContainer
}

type IGenericContents

type IGenericContents interface {
	WaitForStatusChanges()
}

type PooledContents

type PooledContents struct {
	lib_gc_pool.Pooler
}

func (*PooledContents) WaitForStatusChanges

func (pc *PooledContents) WaitForStatusChanges()

type ShutdownChan

type ShutdownChan chan struct{}

type StartChan

type StartChan chan struct{}

type StopChan

type StopChan chan struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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