model

package
v0.0.0-...-e8fbb80 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	FileName    string    `json:"filename"`
	Name        string    `json:"name"`
	Base        string    `json:"base"`
	Version     string    `json:"version"`
	Desc        string    `json:"desc"`
	CSize       string    `json:"csize"`
	ISize       string    `json:"isize"`
	MD5Sum      string    `json:"md5sum"`
	SHA256Sum   string    `json:"sha256sum"`
	URL         string    `json:"url"`
	License     string    `json:"license"`
	Arch        string    `json:"arch"`
	BuildDate   time.Time `json:"build_date"`
	Packager    string    `json:"packager"`
	Depends     []string  `json:"depends"`
	OptDepends  []string  `json:"optdepends"`
	MakeDepends []string  `json:"makedpends"`
	Files       []string  `json:"-"`
}

type Perm

type Perm struct {
	Read  bool `json:"read"`
	Write bool `json:"write"`
	Admin bool `json:"admin"`
}

type Repo

type Repo struct {
	ID           int64     `json:"id"            meddler:"id,pk"`
	UserID       int64     `json:"-"             meddler:"user_id"`
	Private      bool      `json:"private"       meddler:"private"`
	Owner        string    `json:"owner"         meddler:"owner"`
	Name         string    `json:"name"          meddler:"name"`
	SourceOwner  string    `json:"source_owner"  meddler:"source_owner"`
	SourceName   string    `json:"source_name"   meddler:"source_name"`
	SourceBranch string    `json:"source_branch" meddler:"source_branch"`
	BuildBranch  string    `json:"build_branch"  meddler:"build_branch"`
	Hash         string    `json:"-"             meddler:"hash"`
	LastCheck    time.Time `json:"last_check"    meddler:"last_check,utctime"`
}

type User

type User struct {
	ID    int64  `json:"id"    meddler:"id,pk"`
	Login string `json:"login" meddler:"login"`
	Token string `json:"-"     meddler:"token"`
	Admin bool   `json:"admin" meddler:"admin"`
	Hash  string `json:"-"     meddler:"hash"`
}

Jump to

Keyboard shortcuts

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