service

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServiceEngine

type HttpServiceEngine struct {
	ProjectName string
	Addr        string
	Middlewares []gin.HandlerFunc
	Mode        string
	RouterGroup map[string]RouterInjector
	VPath       string
	*gin.Engine
}

func (*HttpServiceEngine) Init

func (hse *HttpServiceEngine) Init() *HttpServiceEngine

func (*HttpServiceEngine) InjectApiRouter

func (hse *HttpServiceEngine) InjectApiRouter(root *gin.RouterGroup)

func (*HttpServiceEngine) Start

func (hse *HttpServiceEngine) Start(ctx context.Context, server *http.Server) error

func (*HttpServiceEngine) Stop

func (hse *HttpServiceEngine) Stop(ctx context.Context, server *http.Server) error

type RouterInjector

type RouterInjector interface {
	Inject(router *gin.RouterGroup)
}

Jump to

Keyboard shortcuts

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