response

package
v1.9.24 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 5 Imported by: 61

Documentation

Index

Constants

View Source
const (
	TraceHeaderKey = "X-TRACE-ID"
)

Variables

This section is empty.

Functions

func Failed

func Failed(w *restful.Response, err error, opts ...response.Option)

Failed use to response error messge

func Success

func Success(w *restful.Response, data any, opts ...response.Option)

Success use to response success data

Types

type DesenseObj added in v1.9.17

type DesenseObj interface {
	Desense()
}

Jump to

Keyboard shortcuts

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