app

package
v0.0.0-...-ac046d6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

app

中间件、模型及业务逻辑

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpServer

func NewHttpServer(
	conf *config.Configuration,
	router *gin.Engine,
) *http.Server

Types

type App

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

App 应用结构体

func NewApp

func NewApp(
	conf *config.Configuration,
	logger *zap.Logger,
	httpSrv *http.Server,
) *App

func (*App) Run

func (a *App) Run() error

Run 启动服务

func (*App) RunServer

func (a *App) RunServer()

RunServer 启动服务

func (*App) Stop

func (a *App) Stop(ctx context.Context) error

Stop 停止服务

Directories

Path Synopsis
pkg
web

Jump to

Keyboard shortcuts

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