support

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLifeSet

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

AppLifeSet 支持生命周期

func (*AppLifeSet) OnDown

func (app *AppLifeSet) OnDown(tags ...string)

OnDown 初始化

func (*AppLifeSet) OnInitialize

func (app *AppLifeSet) OnInitialize(tags ...string)

OnInitialize 初始化(注意该方法只最多执行一次)

func (*AppLifeSet) WithDown

func (app *AppLifeSet) WithDown(fn ...func())

WithDown 设置初始化函数

func (*AppLifeSet) WithInitialize

func (app *AppLifeSet) WithInitialize(fn ...func())

WithInitialize 设置初始化函数

type CallbackSet

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

CallbackSet 用于设置回调函数

func (*CallbackSet) OnCallback

func (app *CallbackSet) OnCallback(tags ...string)

OnCallback 回调时

func (*CallbackSet) OnCallbackOnce

func (app *CallbackSet) OnCallbackOnce(tags ...string)

OnCallbackOnce 回调时(只执行一次)

func (*CallbackSet) WithCallback

func (app *CallbackSet) WithCallback(fn ...func())

WithCallback 设置初始化函数

type ModuleSet

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

ModuleSet 模块支持组件

用于设置是否模块启动

func (*ModuleSet) Module

func (app *ModuleSet) Module() bool

func (*ModuleSet) SetServer

func (app *ModuleSet) SetServer(servers ...interface{})

SetServer 设置模块启动

func (*ModuleSet) WithModule

func (app *ModuleSet) WithModule(t bool)

WithModule 设置是否模块

type NameSet

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

func (*NameSet) Name

func (app *NameSet) Name() string

Name 初始化

func (*NameSet) WithName

func (app *NameSet) WithName(name string)

WithName 设置名称

type ServerSet

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

ServerSet 服务支持组件

用于设置server和启动server

func (*ServerSet) Servers

func (app *ServerSet) Servers() []interfaces.ItfServer

Servers 指定worker

func (*ServerSet) Start

func (app *ServerSet) Start()

Start 启动

func (*ServerSet) Stop

func (app *ServerSet) Stop() error

func (*ServerSet) WithApiServer

func (app *ServerSet) WithApiServer(s ...interfaces.ItfApiServer)

WithApiServer 指定apiServer

func (*ServerSet) WithServer

func (app *ServerSet) WithServer(s ...interfaces.ItfServer)

WithServer 指定任意Server

func (*ServerSet) WithWorker

func (app *ServerSet) WithWorker(s ...interfaces.ItfWorker)

WithWorker 指定worker

Jump to

Keyboard shortcuts

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