route

package
v2.11.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiRouter

type ApiRouter struct {
	// contains filtered or unexported fields
}

func NewApiRouter

func NewApiRouter(router *gin.Engine) *ApiRouter

func (*ApiRouter) AttachRoutes

func (ar *ApiRouter) AttachRoutes()

@produce json @success 200 {string} string "{"message": "pong"}" @router /api/ping [get]

type Router

type Router interface {
	AttachRoutes()
}

type SwaggerRouter

type SwaggerRouter struct {
	// contains filtered or unexported fields
}

func NewSwaggerRouter

func NewSwaggerRouter(router *gin.Engine) *SwaggerRouter

func (*SwaggerRouter) AttachRoutes

func (sr *SwaggerRouter) AttachRoutes()

type [http://localhost:8080/swagger/index.html] in browser to watch the swagger api doc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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