models

package
v0.0.0-...-831fdfd Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComment

func NewComment(com *Comment) *pb.Comment

func NewHandler

func NewHandler(hdlr *Handler) *pb.Handler

func NewModule

func NewModule(mod *Module) *pb.Module

func NewPackage

func NewPackage(pkg *Package) *pb.Package

Types

type Comment

type Comment struct {
	Created time.Time `db:"created"`
	Updated time.Time `db:"updated"`
	Comment string    `db:"comment"`
	ID      uint64    `db:"id"`
}

type Handler

type Handler struct {
	ID       uint64          `db:"id"`
	Package  uint64          `db:"package"`
	Name     string          `db:"name"`
	Coverage sql.NullFloat64 `db:"coverage"`
}

type Issue

type Issue struct {
	Comment string  `db:"comment"`
	Modules []int64 `db:"modules"`
	ID      uint64  `db:"id"`
	Status  uint64  `db:"status"`
	Package uint64  `db:"package"`
}

type Module

type Module struct {
	LastCheck sql.NullTime `db:"last_check"`
	Name      string       `db:"name"`
	Version   string       `db:"version"`
	ID        uint64       `db:"id"`
}

type Package

type Package struct {
	Created     time.Time       `db:"created"`
	Updated     time.Time       `db:"updated"`
	LastCheck   sql.NullTime    `db:"last_check"`
	Type        string          `db:"type"`
	Name        string          `db:"name"`
	URL         string          `db:"url"`
	Description sql.NullString  `db:"description"`
	Coverage    sql.NullFloat64 `db:"coverage"`
	Modules     uint64          `db:"modules"`
	ID          uint64          `db:"id"`
	Status      uint64          `db:"status"`
	Comments    uint64          `db:"comments"`
	Issues      uint64          `db:"issues"`
}

Jump to

Keyboard shortcuts

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