models

package
v0.0.0-...-3f86b48 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidaBackup

func ValidaBackup(backup *Backup) error

Types

type Backup

type Backup struct {
	Dashboard string `json:"dashboard" validate:"nonzero"`
	Url       string `json:"url" validate:"nonzero`
	Login     string `json:"login" validate:"nonzero,min=8,max=8"`
	Password  string `json:"password" validate:"nonzero,min=5"`
	Sigla     string `json:"sigla" validate:"min=3,max=3"`
}

type Dashboard

type Dashboard struct {
	Id        int      `json:"id"`
	Uid       string   `json:"uid"`
	Title     string   `json:"title"`
	Uri       string   `json:"uri"`
	Slug      string   `json:"slug"`
	Type      string   `json:"type"`
	Tags      []string `json:"tags"`
	IsStarred bool     `json:"isStarred"`
	SortMeta  int      `json:"sortMeta"`
}

func ListDashboards

func ListDashboards(b *Backup) []Dashboard

Jump to

Keyboard shortcuts

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