request

package
v0.0.0-...-d19532d Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRecordInvalid = errors.New("record is invalid")

Functions

This section is empty.

Types

type Satellite

type Satellite struct {
	Name     string   `json:"name" storm:"id"`
	X        float64  `json:"x"`
	Y        float64  `json:"y"`
	Distance float64  `json:"distance"`
	Message  []string `json:"message"`
}

func (*Satellite) Validate

func (s *Satellite) Validate() error

type SatelliteRequest

type SatelliteRequest struct {
	Name     string   `json:"name" validate:"required"`
	Distance float64  `json:"distance" validate:"required"`
	Message  []string `json:"message" validate:"required"`
}

type SatellitesRequest

type SatellitesRequest struct {
	Satellites []SatelliteRequest `json:"satellites" validate:"required"`
}

Jump to

Keyboard shortcuts

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