payload

package
v0.0.0-...-2e0bdef Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 3 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 DataToken

type DataToken struct {
}

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