payload

package
v0.0.0-...-cfcd8fe Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorResponse

func NewErrorResponse(err error, traceID string) any

func NewSuccessResponse

func NewSuccessResponse(data any, traceID string) any

Types

type Args

type Args struct {
	Type      string                    `json:"type"`
	Data      any                       `json:"data"`
	Publisher framework.ApplicationData `json:"publisher"`
	TraceID   string                    `json:"trace_id"`
}

type Payload

type Payload struct {
	Data      any                       `json:"data"`
	Publisher framework.ApplicationData `json:"publisher"`
	TraceID   string                    `json:"traceId"`
}

type Reply

type Reply struct {
	Success      bool
	ErrorMessage string
	Data         any
}

type Response

type Response struct {
	Success      bool   `json:"success"`
	ErrorCode    string `json:"error_code"`
	ErrorMessage string `json:"error_message"`
	Data         any    `json:"data"`
	TraceID      string `json:"trace_id"`
}

Jump to

Keyboard shortcuts

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