handler

package
v0.0.0-...-8fe00be Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

* @FilePath: /workflow-server/pkg/handler/handler.go * @Author: maggot-code * @Date: 2023-08-14 16:03:25 * @LastEditors: maggot-code * @LastEditTime: 2023-08-16 18:22:54 * @Description:

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFoundError     = errors.StatusNotFound("Not found", "not found")
	UnauthorizedError = errors.StatusUnauthorized("Unauthorized", "unauthorized")
	UnknownError      = errors.StatusInternalServerError("Unknown error", "server error")
)

Functions

func JSON

func JSON(hd handler) gin.HandlerFunc

func NotFound

func NotFound(ctx *gin.Context)

func Unauthorized

func Unauthorized(ctx *gin.Context)

Types

type Response

type Response interface{}

Jump to

Keyboard shortcuts

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