internal

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleLifetimeRoutine

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

func (*ConsoleLifetimeRoutine) Construct

func (*ConsoleLifetimeRoutine) Start

func (*ConsoleLifetimeRoutine) Stop

type Host

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

func NewHost

func NewHost(provider injection.IRoutineProvider) *Host

func (*Host) Construct

func (ss *Host) Construct(option *option.Option[*HostOption], logger *logging.Logger[Host])

func (*Host) GetRoutineProvider

func (ss *Host) GetRoutineProvider() injection.IRoutineProvider

func (*Host) Start

func (ss *Host) Start(ctx context.Context, wg *sync.TimeoutWaitGroup)

func (*Host) Stop

func (ss *Host) Stop(ctx context.Context, wg *sync.TimeoutWaitGroup)

type HostApplication

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

func NewHostApplication

func NewHostApplication() *HostApplication

func (*HostApplication) OnStarted

func (ss *HostApplication) OnStarted(listener func())

func (*HostApplication) OnStopped

func (ss *HostApplication) OnStopped(listener func())

func (*HostApplication) OnStopping

func (ss *HostApplication) OnStopping(listener func())

func (*HostApplication) StopApplication

func (ss *HostApplication) StopApplication()

type HostOption

type HostOption struct {
	StartWaitTimeoutSeconds int
	StopWaitTimeoutSeconds  int
}

type HostedLifecycleRoutineContainer

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

func (*HostedLifecycleRoutineContainer) AddHostedLifecycleRoutine

func (ss *HostedLifecycleRoutineContainer) AddHostedLifecycleRoutine(factory func() host.IHostedLifecycleRoutine)

func (*HostedLifecycleRoutineContainer) BuildHostedLifecycleRoutines

func (ss *HostedLifecycleRoutineContainer) BuildHostedLifecycleRoutines()

func (*HostedLifecycleRoutineContainer) GetHostedLifecycleRoutines

func (ss *HostedLifecycleRoutineContainer) GetHostedLifecycleRoutines() []host.IHostedLifecycleRoutine

type HostedRoutineContainer

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

func (*HostedRoutineContainer) AddHostedRoutine

func (ss *HostedRoutineContainer) AddHostedRoutine(factory func() host.IHostedRoutine)

func (*HostedRoutineContainer) BuildHostedRoutines

func (ss *HostedRoutineContainer) BuildHostedRoutines()

func (*HostedRoutineContainer) GetHostedRoutines

func (ss *HostedRoutineContainer) GetHostedRoutines() []host.IHostedRoutine

type RoutineCollection

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

func NewRoutineCollection

func NewRoutineCollection() *RoutineCollection

func (*RoutineCollection) AddDescriptor

func (ss *RoutineCollection) AddDescriptor(descriptor *injection.RoutineDescriptor)

func (*RoutineCollection) GetDescriptor

func (ss *RoutineCollection) GetDescriptor(ty reflect.Type) *injection.RoutineDescriptor

func (*RoutineCollection) GetDescriptors

func (ss *RoutineCollection) GetDescriptors() []*injection.RoutineDescriptor

func (*RoutineCollection) GetKeyedDescriptor

func (ss *RoutineCollection) GetKeyedDescriptor(key any, ty reflect.Type) *injection.RoutineDescriptor

type RoutineProvider

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

func NewProvider

func NewProvider(descriptors injection.IRoutineCollection, root *RoutineProvider) *RoutineProvider

func (*RoutineProvider) CreateScope

func (ss *RoutineProvider) CreateScope() injection.IRoutineScope

func (*RoutineProvider) GetKeyedRoutine

func (ss *RoutineProvider) GetKeyedRoutine(key any, ty reflect.Type) any

func (*RoutineProvider) GetRootScope

func (ss *RoutineProvider) GetRootScope() injection.IRoutineScope

func (*RoutineProvider) GetRoutine

func (ss *RoutineProvider) GetRoutine(ty reflect.Type) any

type RoutineScope

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

func NewRoutineScope

func NewRoutineScope(provider *RoutineProvider) *RoutineScope

func (*RoutineScope) GetKeyedScopedRoutine

func (ss *RoutineScope) GetKeyedScopedRoutine(key any, ty reflect.Type) any

func (*RoutineScope) GetProvider

func (ss *RoutineScope) GetProvider() injection.IRoutineProvider

func (*RoutineScope) GetRoot

func (ss *RoutineScope) GetRoot() injection.IRoutineScope

func (*RoutineScope) GetScopedRoutine

func (ss *RoutineScope) GetScopedRoutine(ty reflect.Type) any

func (*RoutineScope) SetKeyedScopedRoutine

func (ss *RoutineScope) SetKeyedScopedRoutine(key any, ty reflect.Type, value any)

func (*RoutineScope) SetScopedRoutine

func (ss *RoutineScope) SetScopedRoutine(ty reflect.Type, value any)

Jump to

Keyboard shortcuts

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