Documentation ¶
Index ¶
- Constants
- func DeleteUser(key *UserKey, svc dynamodbiface.DynamoDBAPI, logger *zap.Logger) error
- func PutUser(user *User, svc dynamodbiface.DynamoDBAPI, logger *zap.Logger) error
- type Certification
- type CertificationKey
- type Degree
- type DegreeKey
- type Experience
- type ExperienceKey
- type Skill
- type SkillKey
- type User
- type UserKey
Constants ¶
View Source
const ( ErrorInvalidEmail = "invalid email" ErrorInvalidUserId = "invalid user_id" ErrorNoResultsFound = "no results found" UsersTable = "resume_user" )
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
func DeleteUser(key *UserKey, svc dynamodbiface.DynamoDBAPI, logger *zap.Logger) error
func PutUser ¶
func PutUser(user *User, svc dynamodbiface.DynamoDBAPI, logger *zap.Logger) error
Types ¶
type Certification ¶
type CertificationKey ¶
type CertificationKey struct {
CertificationName string `json:"certification_name"`
}
type Experience ¶
type Experience struct { Company string `json:"company"` JobTitle string `json:"job_title"` StartMonth string `json:"start_month"` StartYear int `json:"start_year"` EndMonth string `json:"end_month,omitempty"` EndYear int `json:"end_year,omitempty"` Responsibilities []string `json:"responsibilities,omitempty"` }
type ExperienceKey ¶
type User ¶
type User struct { UserId string `json:"user_id"` Email string `json:"email"` Certifications []Certification `json:"certifications,omitempty"` Degrees []Degree `json:"degrees,omitempty"` Experience []Experience `json:"experience,omitempty"` Github string `json:"github,omitempty"` GivenName string `json:"given_name,omitempty"` Location string `json:"location,omitempty"` Linkedin string `json:"linkedin,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` Skills []Skill `json:"skills,omitempty"` Summary string `json:"summary,omitempty"` SurName string `json:"sur_name,omitempty"` }
func GetUserByKey ¶
func GetUserByKey(key *UserKey, svc dynamodbiface.DynamoDBAPI, logger *zap.Logger) (*User, error)
Click to show internal directories.
Click to hide internal directories.