model

package
v0.0.0-...-36bd7b3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoFile                 = errors.New("no file")
	ErrToManyFiles            = errors.New("too many files")
	ErrFileExtensionViolation = errors.New("file extension violation")
	ErrInvalidFileContent     = errors.New("invalid file content")
)

Functions

func Err

func Err(err error) slog.Attr

Types

type Response

type Response struct {
	Message string `json:"message" example:"response message"`
}

type TaskResult

type TaskResult struct {
	Max              int     `json:"max" example:"100"`
	Min              int     `json:"min" example:"1"`
	Median           float64 `json:"median" example:"50.5"`
	Avg              float64 `json:"avg" example:"50.5"`
	MaxIncreasingSeq []int   `json:"max_increasing_seq" example:"[-4390, -503, 3, 16, 5032]"`
	MaxDecreasingSeq []int   `json:"max_decreasing_seq" example:"[5032, 16, 3, -503, -4390]"`
	Time             string  `json:"time" example:"1s"`
}

Jump to

Keyboard shortcuts

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