dto

package
v0.0.0-...-55366f8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 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 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 GetKeyRequest

type GetKeyRequest struct {
	Key string `json:"key"`
}

type Key

type Key struct {
	Value string `json:"value"`
}

type SetKeyRequest

type SetKeyRequest struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type SetKeyResponse

type SetKeyResponse struct {
	Success bool `json:"success"`
}

Jump to

Keyboard shortcuts

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