Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPort = 8000 DefaultBasePath = "/api" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomContext ¶
type CustomContext struct { }
type CustomEngine ¶
type CustomEngine struct { PublicRouteGroup *gin.RouterGroup InternalRouteGroup *gin.RouterGroup ExternalRouteGroup *gin.RouterGroup // contains filtered or unexported fields }
func NewEngine ¶
func NewEngine(config Config) *CustomEngine
func (*CustomEngine) BasePath ¶
func (e *CustomEngine) BasePath() string
func (*CustomEngine) Engine ¶
func (e *CustomEngine) Engine() *gin.Engine
func (*CustomEngine) Port ¶
func (e *CustomEngine) Port() int
func (*CustomEngine) PortString ¶
func (e *CustomEngine) PortString() string
func (*CustomEngine) Run ¶
func (e *CustomEngine) Run()
func (*CustomEngine) Use ¶
func (e *CustomEngine) Use(middleware gin.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.