application

package
v0.0.0-...-9f39f39 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendAssemblies

func AppendAssemblies(a ...IAssembly)

AppendAssemblies 添加系统组件

func Initialize

func Initialize(name string)

Initialize 初始化应用

func KeepAlive

func KeepAlive()

KeepAlive 应用保活

func StartUpService

func StartUpService(p IService)

StartUpService 启动服务

Types

type IAssembly

type IAssembly func() error

IAssembly is the interface that wraps the basic Assembly method.

type IService

type IService interface {
	Name() string
	StartUp() error
	Stop()
}

IService is the interface that wraps the basic StartUp and Stop methods. - Name() 服务的名称 - StartUp() 启动服务 - Stop() 停止服务

Jump to

Keyboard shortcuts

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