models

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	Message  string `json:"message,omitempty" `
	Response string `json:"response,omitempty" `
}

func ApiDefaultError

func ApiDefaultError(err string) *ApiError

type ApiMessage

type ApiMessage struct {
	Message  string      `json:"message,omitempty" `
	Response string      `json:"response,omitempty" `
	Data     interface{} `json:"data,omitempty"`
}

func ApiDefault added in v0.5.5

func ApiDefault() *ApiMessage

func ApiDefaultMsgOnly

func ApiDefaultMsgOnly(message string) *ApiMessage

func ApiDefaultMsgResponse

func ApiDefaultMsgResponse(data interface{}, message string) *ApiMessage

func ApiDefaultResponse

func ApiDefaultResponse(data interface{}) *ApiMessage

type ErrorMess

type ErrorMess struct {
	Severity string `json:"severity,omitempty"`
	Message  string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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