http

package
v2.0.0-...-0229899 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Gateway delivery.HttpHandler
)

Functions

func NewApiGateway

func NewApiGateway(configName string, core configer.CoreInterface) delivery.HttpHandler

func NewApiGatewayWithData

func NewApiGatewayWithData(configName string, defaultData []byte) delivery.HttpHandler

Types

type ApiGateway

type ApiGateway struct {
	Api *gin.RouterGroup
	// contains filtered or unexported fields
}

func (*ApiGateway) EnableAutoRegistration

func (this *ApiGateway) EnableAutoRegistration(configName string, configType string, configPath ...string) error

func (*ApiGateway) GetApiRoute

func (gateway *ApiGateway) GetApiRoute() *gin.RouterGroup

func (*ApiGateway) GetConfig

func (this *ApiGateway) GetConfig() configer.CoreInterface

func (*ApiGateway) GetEngine

func (gateway *ApiGateway) GetEngine() *gin.Engine

func (*ApiGateway) GetHandler

func (gateway *ApiGateway) GetHandler() util.RequestHandlerInterface

func (*ApiGateway) GetUploadPath

func (this *ApiGateway) GetUploadPath() string

func (*ApiGateway) Run

func (this *ApiGateway) Run()

Jump to

Keyboard shortcuts

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