dto

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

README

Data Transfer Objects

All the DTOs could be defined in this package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoRequest

type EchoRequest struct {
	RandomID int64 `json:"randomID"`
	Ok       bool  `json:"ok"`
}

type EchoResponse

type EchoResponse struct {
	RandomID int64 `json:"randomID"`
	Ok       bool  `json:"ok"`
}

type EmbeddedHeader

type EmbeddedHeader struct {
	SomeKey1 string `json:"someKey1"`
	SomeInt1 int64  `json:"someInt1"`
}

type ErrorMessage

type ErrorMessage struct {
	Code int    `json:"code"`
	Item string `json:"item"`
}

func Err

func Err(code int, item string) ErrorMessage

func (ErrorMessage) Error

func (e ErrorMessage) Error() string

func (ErrorMessage) GetCode

func (e ErrorMessage) GetCode() int

func (ErrorMessage) GetItem

func (e ErrorMessage) GetItem() string

type RedirectRequest

type RedirectRequest struct {
	URL string `json:"url"`
}

type SumRequest

type SumRequest struct {
	EmbeddedHeader
	Val1 int64 `json:"val1"`
	Val2 int64 `json:"val2"`
}

type SumResponse

type SumResponse struct {
	EmbeddedHeader
	Val int64 `json:"val"`
}

Jump to

Keyboard shortcuts

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