app

package
v0.0.0-...-9970c52 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppProviderSet = wire.NewSet(
	NewApplication,
)

Functions

This section is empty.

Types

type Application

type Application struct {
	Initer Initer
	// contains filtered or unexported fields
}

Application 所有依赖集合

func NewApplication

func NewApplication(
	e *gin.Engine,
	redis store.CacheStorer,
	feishu feishu.Feishuer,
	cleanDuplicateFiringer v1.CleanDuplicateFiringer,
	cleanExpiredSilencer v1.CleanExpiredSilencer,
	cleanInhibitAlert v1.AlertInhibiter,
) *Application

func (*Application) Run

func (app *Application) Run(ctx context.Context) error

func (*Application) Stop

func (app *Application) Stop()

type Init

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

Init Initer 的实现

func (*Init) Init

func (receiver *Init) Init(ctx context.Context) error

type Initer

type Initer interface {
	Init(ctx context.Context) error
}

Initer 初始化接口

type Options

type Options func(*Application)

func WithInit

func WithInit(redis store.CacheStorer, feishu feishu.Feishuer) Options

func WithServer

func WithServer(server ...server.ServerInterface) Options

Jump to

Keyboard shortcuts

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