annotation

package
v0.0.0-...-fbf9a92 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	ID        primitive.ObjectID `bson:"_id" json:"id"`
	IDStr     string             `bson:"idStr" json:"idStr"`
	CreatedAt time.Time          `json:"createdAt" bson:"createdAt"`
	UpdatedAt time.Time          `json:"updatedAt" bson:"updatedAt"`
	Deleted   bool               `json:"-" bson:"deleted"`

	AnnotatorIDStr      string `bson:"annotatorIdStr" json:"annotatorIdStr"`
	AnnotatorScreenName string `bson:"annotatorScreenName" json:"annotatorScreenName"`

	Text                 string   `json:"text" bson:"text"`
	AccountType          string   `json:"accountType" bson:"accountType"`
	PoliticalOrientation string   `json:"politicalOrientation" bson:"politicalOrientation"`
	Context              []string `json:"context" bson:"context"`
	Note                 string   `json:"note" bson:"note"`
	Media                []string `json:"media" bson:"media"`
	Urls                 []string `json:"urls" bson:"urls"`
}

Annotation : Annotation Schema model

func Create

func Create(dbConn *db.DB, a *Annotation) (*Annotation, error)

Create inserts a new user into the database.

Jump to

Keyboard shortcuts

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