models

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Liveness

type Liveness struct {
	Status    string `json:"status"`
	Timestamp string `json:"timestamp"`
}

type RequestParams

type RequestParams struct {
	Length  int `form:"length", json"length"`
	Digits  int `form:"digits", json:"digits"`
	Symbols int `form:"symbols", json:"symbols"`
}

func (*RequestParams) Validate

func (r *RequestParams) Validate() error

type Response

type Response struct {
	Request  RequestParams `json:"request"`
	Password string        `json:"password"`
	Error    string        `json:"error,omitempty"`
}

type Version

type Version struct {
	Version        string `json:"version"`
	CommitHash     string `json:"commit_hash"`
	BuildTimestamp string `json:"build_timestamp"`
}

Jump to

Keyboard shortcuts

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