tag

package
v0.0.0-...-ee8487a Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoDocuments = errors.New("Tag: no documents in result")

Functions

func InitRouter

func InitRouter() http.Handler

Types

type SummaryTag

type SummaryTag struct {
	ID   primitive.ObjectID `json:"id" bson:"_id"`
	Tags []*TagID           `json:"tags" bson:"tags"`
	// contains filtered or unexported fields
}

type SummaryTags

type SummaryTags struct {
	// contains filtered or unexported fields
}

type Tag

type Tag struct {
	ID        primitive.ObjectID `json:"id" bson:"_id"`
	TagID     int64              `json:"tagId" bson:"tagId"`
	Name      string             `json:"name" bson:"name"`
	GroupID   int64              `json:"groupId" bson:"groupId"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
}

type TagID

type TagID struct {
	TagID int64 `json:"tagId" bson:"tagId"`
}

type TagSet

type TagSet []int64

type TagUse

type TagUse struct {
	TagID   int64  `json:"tagId"`
	TagName string `json:"tagName,omitempty"`
	Count   int64  `json:"count"`
}

type Tags

type Tags struct {
	LastTagID int64
	ByID      map[int64]Tag
}

func NewTags

func NewTags() Tags

Jump to

Keyboard shortcuts

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