shared

package
v0.0.0-...-1fb6433 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Id     string `json:"Id,omitempty"`
	Title  string `json:"Title,omitempty"`
	Detail string `json:"Detail,omitempty"`
	Status string `json:"Status,omitempty"`
}

type JsonApi

type JsonApi struct {
	Version string `json:"version"`
}

type Output

type Output struct {
	JsonApi `json:"jsonapi"`
	Payload interface{} `json:"data,omitempty"`
	*Error  `json:"error,omitempty"`
}

func NewOutput

func NewOutput(payload interface{}, apiError *ae.ApiError) Output

Jump to

Keyboard shortcuts

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