model

package
v0.0.0-...-497b9c9 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUserNotProvided occurs when user not found in context
	ErrUserNotProvided = errors.New("user not provided")
)

Functions

This section is empty.

Types

type Reading

type Reading struct {
	ID   uint64         `json:"id"`
	URL  string         `json:"url"`
	Read bool           `json:"read"`
	Tags []*Tag         `json:"tags"`
	User authModel.User `json:"-"`
}

Reading describe an url saved by an user

type ReadingTag

type ReadingTag struct {
	ReadingID uint64
	TagID     uint64
}

ReadingTag describes link between a reading and a tag

type RowScanner

type RowScanner interface {
	Scan(...interface{}) error
}

RowScanner describes scan ability of a row

type Tag

type Tag struct {
	ID   uint64         `json:"id"`
	Name string         `json:"name"`
	User authModel.User `json:"-"`
}

Tag describe a meta label defined by an user

Jump to

Keyboard shortcuts

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