routes

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileUpload

func FileUpload(savePath string) gin.HandlerFunc

func GinGraphqlHandler

func GinGraphqlHandler(root any, content embed.FS) gin.HandlerFunc

GinGraphqlHandler returns a http.Handler that can be used to serve the GraphQL API.

func GinGraphqlView

func GinGraphqlView() gin.HandlerFunc

GinGraphqlView returns a http.HandlerFunc that can be used to serve the GraphiQL IDE.

func HttpCheckHealth

func HttpCheckHealth(router *gin.Engine)

HttpCheckHealth 检查服务健康

func HttpPing

func HttpPing(router *gin.Engine)

HttpPing router ping

func RegisterHttpRouter

func RegisterHttpRouter(r *gin.Engine, root any, content embed.FS, dev ...bool)

RegisterHttpRouter registers the GraphQL API and GraphiQL IDE.

func RegisterMetricRoute

func RegisterMetricRoute(r *gin.Engine)

RegisterMetricRoute registers the metric route.

Types

This section is empty.

Jump to

Keyboard shortcuts

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