Documentation
¶
Index ¶
- func NewAppManager[T scene.Application](apps ...T) scene.ApplicationManager[T]
- type HttpAppContainer
- func (h *HttpAppContainer[T]) GetAppInfo(appID string) scene.Application
- func (h *HttpAppContainer[T]) ListAppNames() []string
- func (h *HttpAppContainer[T]) Name() string
- func (h *HttpAppContainer[T]) Start() error
- func (h *HttpAppContainer[T]) Status() scene.AppContainerStatus
- func (h *HttpAppContainer[T]) Stop(ctx context.Context) error
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
Click to show internal directories.
Click to hide internal directories.