misc

package
v0.0.0-...-5e392d4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHTTPErrorJSON

func BuildHTTPErrorJSON(message string, requestID string) string

Types

type BaseContext

type BaseContext struct {
	AccountID string
	RequestID string
	InternalContext
	MiscHandle MiscHandle
}

type Error

type Error struct {
	Message string `json:"message"`

	RequestID string `json:"requestID"`
}

type InternalContext

type InternalContext struct {
	// DS   dao.ReadWritter
	Log *logrus.Entry
}

type MiscHandle

type MiscHandle struct {
	InternalContext
	AccountID string
	RequestID string
}

type Response

type Response struct {
	Code     int
	Response string
}

func PanicHandler

func PanicHandler(r interface{}, requestID string) Response

PanicHandler To handle server break from syntax errors

Jump to

Keyboard shortcuts

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