runtime

package
v0.14.1-dcf81a1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Status int
	Data   any
}

Result represents a runtime type to be used across layers to return data and a status Is like an http Response, but it doesn't requires body decode

func ContinueResponse

func ContinueResponse(data any) Result

ContinueResponse incapsulates some

func ErrorResponse

func ErrorResponse(err errors.FabricError) Result

func NewResult

func NewResult(status int, data any) Result

NewResult is an helper method to build a new generic result

func SuccessResponse

func SuccessResponse(data any) Result

func (Result) WriteTo

func (r Result) WriteTo(ctx *gin.Context)

type UnstructuredData added in v0.14.0

type UnstructuredData map[string]interface{}

func (*UnstructuredData) DeepCopy added in v0.14.0

func (in *UnstructuredData) DeepCopy() *UnstructuredData

Jump to

Keyboard shortcuts

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