Documentation
¶
Index ¶
- Variables
- func NewApiGateway(configName string, core configer.CoreInterface) delivery.HttpHandler
- func NewApiGatewayWithData(configName string, defaultData []byte) delivery.HttpHandler
- type ApiGateway
- func (this *ApiGateway) EnableAutoRegistration(configName string, configType string, configPath ...string) error
- func (gateway *ApiGateway) GetApiRoute() *gin.RouterGroup
- func (this *ApiGateway) GetConfig() configer.CoreInterface
- func (gateway *ApiGateway) GetEngine() *gin.Engine
- func (gateway *ApiGateway) GetHandler() util.RequestHandlerInterface
- func (this *ApiGateway) GetUploadPath() string
- func (this *ApiGateway) Run()
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()
Click to show internal directories.
Click to hide internal directories.