engine

package
v0.0.0-...-b33671b Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort     = 8000
	DefaultBasePath = "/api"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AddCustomContextMiddleware func(*gin.Engine)
	Port                       int
	BasePath                   string

	Lifecycle         string
	Tracing           bool
	CollectorEndpoint string
	InternalRoutes    bool
	ExternalRoutes    bool
}

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)

Jump to

Keyboard shortcuts

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