routers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ping

func Ping(c *gin.Context)

Ping 路由 @Summary ping 路由 @Description ping 路由 @Tags default @Security BearerAuth @Accept json @Produce json @Success 200 {string} pong "pong" @Router /api/v1/ping [get]

func RegisterRoutes

func RegisterRoutes(router *gin.RouterGroup)

func Root

func Root(c *gin.Context)

根路由 @Summary 根路由 @Description 根路由 @Tags default @Accept json @Produce json @Success 200 {object} ApiResponse "欢迎使用OPC-UA OpenAPI" @Router /api/v1/ [get]

Types

type ApiResponse

type ApiResponse struct {
	Message string `json:"message" example:"欢迎使用OPC-UA OpenAPI"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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