http

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

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 added in v1.0.4

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 added in v1.0.9

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

func (*ApiGateway) GetApiRoute

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

func (*ApiGateway) GetConfig added in v1.0.3

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 added in v1.0.7

func (this *ApiGateway) GetUploadPath() string

func (*ApiGateway) Run added in v1.0.3

func (this *ApiGateway) Run()

Jump to

Keyboard shortcuts

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