models

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse added in v0.5.0

type ErrorResponse struct {
	Code        int    `json:"code"`
	Status      string `json:"status"`
	Description string `json:"description,omitempty"`
}

ErrorResponse is the standard error respons format (independent)

type ThingRequest added in v0.0.3

type ThingRequest struct {
	Name string `json:"name"`
}

ThingRequest model

type ThingResponse added in v0.0.3

type ThingResponse struct {
	Name       string    `json:"name"`
	Int        int       `json:"int"`
	Int8       int8      `json:"int8"`
	Int16      int16     `json:"int16"`
	Int32      int32     `json:"int32"`
	Int64      int64     `json:"int64"`
	UInt       uint      `json:"uint"`
	UInt8      uint8     `json:"uint8"`
	UInt16     uint16    `json:"uint16"`
	UInt32     uint32    `json:"uint32"`
	UInt64     uint64    `json:"uint64"`
	Float32    float32   `json:"float32"`
	Float64    float64   `json:"float64"`
	Bool       bool      `json:"bool"`
	CreateDate time.Time `json:"createDate" format:"date-time,2006-01-02"`
	UpdateDate time.Time `json:"updateDate"`
}

ThingResponse model

Jump to

Keyboard shortcuts

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