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: 0

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