handler

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallHandler

func InstallHandler(r *gin.Engine)

InstallHandler is an interface that registes route and handles scheduler's services.

func InstallPingHandler

func InstallPingHandler(r *gin.Engine)

func InstallVersionHandler

func InstallVersionHandler(r *gin.Engine)

func SendJSON

func SendJSON(c *gin.Context, code int, obj interface{})

Types

type JSON

type JSON struct {
	Data interface{}
}

func (JSON) Render

func (r JSON) Render(w http.ResponseWriter) error

func (JSON) WriteContentType

func (r JSON) WriteContentType(w http.ResponseWriter)

type SyncSkuArgs

type SyncSkuArgs struct {
	Wait bool `json:"wait"`
}

Jump to

Keyboard shortcuts

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