common

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAppManager

func NewAppManager[T scene.Application](apps ...T) scene.ApplicationManager[T]

Types

type HttpAppContainer

type HttpAppContainer[T scene.Application] struct {
	// contains filtered or unexported fields
}

func NewHttpAppContainer

func NewHttpAppContainer[T scene.Application](
	manager scene.ApplicationManager[T],
	factory scene.ApplicationFactory[T],
	logger logger.ILogger,
	addr string,
	handler http.Handler) *HttpAppContainer[T]

func (*HttpAppContainer[T]) GetAppInfo

func (h *HttpAppContainer[T]) GetAppInfo(appID string) scene.Application

func (*HttpAppContainer[T]) ListAppNames

func (h *HttpAppContainer[T]) ListAppNames() []string

func (*HttpAppContainer[T]) Name

func (h *HttpAppContainer[T]) Name() string

func (*HttpAppContainer[T]) Start

func (h *HttpAppContainer[T]) Start() error

func (*HttpAppContainer[T]) Status

func (h *HttpAppContainer[T]) Status() scene.AppContainerStatus

func (*HttpAppContainer[T]) Stop

func (h *HttpAppContainer[T]) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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