httpjson

package
v0.397.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorResponse added in v0.368.0

func NewErrorResponse(ctx context.Context, err error, data map[string]any) common.Response

func NewHandler

func NewHandler(p *proto.Schema, api *proto.Api) common.HandlerFunc

Types

type HttpJsonErrorResponse added in v0.368.0

type HttpJsonErrorResponse struct {
	Code    string         `json:"code"`
	Message string         `json:"message"`
	Data    map[string]any `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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