dto

package
v0.0.0-...-d2bc1ab Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLimit uint = 100
	DefaultSkip  uint = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateGroupInput

type CreateGroupInput struct {
	Name string `validate:"required"`
}

func (CreateGroupInput) Validate

func (input CreateGroupInput) Validate() error

type CreateUserInput

type CreateUserInput struct {
	Email    string `validate:"required,email"`
	Password string `validate:"required,min=8"`
	GroupId  uint
}

func (CreateUserInput) HasGroup

func (input CreateUserInput) HasGroup() bool

func (CreateUserInput) Validate

func (input CreateUserInput) Validate() error

type FindSnapshotQuery

type FindSnapshotQuery struct {
	Backup uint   `json:"backup"`
	Agent  uint   `json:"agent"`
	Tag    string `json:"tag"`
	Limit  uint   `json:"limit"`
	Skip   uint   `json:"skip"`
}

func (*FindSnapshotQuery) Init

func (f *FindSnapshotQuery) Init()

type SnapshotWithTotal

type SnapshotWithTotal struct {
	Snapshots []models.Snapshot `json:"snapshots"`
	Total     int64             `json:"total"`
}

Jump to

Keyboard shortcuts

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