models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {

	// id
	ID primitive.ObjectID `json:"id,omitempty" bson:"_id"`

	// created at
	CreatedAt int64 `json:"created_at,omitempty" bson:"created_at"`

	// created by
	CreatedBy string `json:"created_by,omitempty" bson:"created_by"`

	// data
	Data string `json:"data,omitempty" bson:"data"`

	// meta data
	MetaData string `json:"meta_data,omitempty" bson:"meta_data"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty" bson:"updated_at"`

	// updated by
	UpdatedBy string `json:"updated_by,omitempty" bson:"updated_by"`

	// url
	URL string `json:"url,omitempty" bson:"url"`
}

type Category

type Category struct {
	Id string `json:"id,omitempty" bson:"_id"`

	Text []string `json:"text,omitempty" bson:"text"`

	// created at
	CreatedAt int64 `json:"created_at,omitempty" bson:"created_at"`

	// created by
	CreatedBy string `json:"created_by,omitempty" bson:"created_by"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty" bson:"updated_at"`

	// updated by
	UpdatedBy string `json:"updated_by,omitempty" bson:"updated_by"`

	// meta data
	MetaData string `json:"meta_data,omitempty" bson:"meta_data"`
}

type Item

type Item struct {

	// id
	ID_ primitive.ObjectID `json:"id,omitempty" bson:"_id"`

	// by
	// Required: true
	By *string `json:"by"`

	// id
	ID int32 `json:"id,omitempty"`

	// kids
	Kids []int32 `json:"kids"`

	// parent
	Parent int32 `json:"parent,omitempty"`

	// parts
	Parts int32 `json:"parts,omitempty"`

	// score
	Score int32 `json:"score,omitempty"`

	// text
	Text string `json:"text,omitempty"`

	// time
	Time int32 `json:"time,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// url
	URL string `json:"url,omitempty"`

	// categories
	Categories []string `json:"categories"`

	// text index
	TextIndex string `json:"text_index,omitempty" bson:"text_index"`

	// created at
	CreatedAt int64 `json:"created_at,omitempty" bson:"created_at"`

	// created by
	CreatedBy string `json:"created_by,omitempty" bson:"created_by"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty" bson:"updated_at"`

	// updated by
	UpdatedBy string `json:"updated_by,omitempty" bson:"updated_by"`

	// meta data
	MetaData string `json:"meta_data,omitempty" bson:"meta_data"`

	// cache id
	CacheID string `json:"cache_id,omitempty" bson:"cache_id"`

	NoCategory bool `json:"no_category,omitempty" bson:"no_category"`

	// texts
	Texts []string `json:"texts" bson:"texts"`
}

Jump to

Keyboard shortcuts

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