responses

package
v0.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Can            bool        `json:"can"`
	RemainingDepth int         `json:"remaining_depth"`
	Decisions      interface{} `json:"decisions"`
}

Check -

type HTTPErrorResponse

type HTTPErrorResponse struct {
	Errors interface{} `json:"errors"`
}

HTTPErrorResponse -

func ValidationResponse

func ValidationResponse(data interface{}) HTTPErrorResponse

ValidationResponse -

type HTTPSuccessResponse

type HTTPSuccessResponse struct {
	Data interface{} `json:"data"`
}

HTTPSuccessResponse -

func SuccessResponse

func SuccessResponse(data interface{}) HTTPSuccessResponse

SuccessResponse -

type Message

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

Message -

func MResponse

func MResponse(message string) Message

MResponse -

Jump to

Keyboard shortcuts

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