api

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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 v1.0.8

type ErrorResponse struct {
	Title         string         `json:"title"`            // human-readable
	Detail        *string        `json:"detail,omitempty"` // human-readable
	InvalidParams []InvalidParam `json:"invalid-params,omitempty"`
}

type InvalidParam added in v1.2.3

type InvalidParam struct {
	Name   string `json:"name"`
	Reason string `json:"reason"` // human-readable
}

type Price

type Price struct {
	ID       *uint
	DateTime *string `validate:"omitempty,max=100"`
	Store    string  `validate:"required,max=100"`
	Product  string  `validate:"required,max=100"`
	Price    uint    `validate:"required"`
}

type User

type User struct {
	ID       *uint
	Name     string   `form:"name" validate:"required,alphanum,max=30"`
	Password password `form:"password" validate:"required,printascii,min=5,max=50" json:"-"`
}

type UserToken

type UserToken struct {
	Token string
}

Jump to

Keyboard shortcuts

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