Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MongoDatabase = "crewdotwork" MongoCollection = "talents" )
Functions ¶
func FindAllHandler ¶
func FindAllHandler(store Store) func(w http.ResponseWriter, r *http.Request)
func InsertOneHandler ¶
func InsertOneHandler(store Store) func(w http.ResponseWriter, r *http.Request)
Types ¶
type InsertTalendResponse ¶
type MongoStore ¶
func (*MongoStore) Drop ¶
func (store *MongoStore) Drop() error
func (*MongoStore) FindAll ¶
func (store *MongoStore) FindAll(limit int64, page int64) ([]Talent, error)
func (*MongoStore) Insert ¶
func (store *MongoStore) Insert(model *Talent) error
type Talent ¶
type Talent struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` FirstName string `bson:"firstName" json:"firstName"` LastName string `bson:"lastName" json:"lastName"` Picture string `bson:"picture" json:"picture"` Job string `bson:"job" json:"job"` Location string `bson:"location" json:"location"` Linkedin string `bson:"linkedin" json:"linkedin"` Github string `bson:"github" json:"github"` Tags []string `bson:"tags" json:"tags"` Stage string `bson:"stage" json:"stage"` }
Click to show internal directories.
Click to hide internal directories.