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.
Click to show internal directories.
Click to hide internal directories.