Documentation ¶
Index ¶
- func DummyHTTP() (s *httptest.Server, err error)
- func ParseInterns(b *Bundle, wg *sync.WaitGroup, rawInterns [][]string)
- func ParseJobs(b *Bundle, wg *sync.WaitGroup, rawJobs [][]string)
- func ParseMentorships(b *Bundle, wg *sync.WaitGroup, rawMentorships [][]string)
- func ParsePeople(b *Bundle, wg *sync.WaitGroup, rawPeople [][]string)
- type Bundle
- type GoogleSheetResponse
- type Intern
- type Job
- type Mentorship
- type ParsingError
- type Person
- type RawDataBundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMentorships ¶
Types ¶
type Bundle ¶
type Bundle struct { Interns []Intern Jobs []Job People []Person Mentorships []Mentorship }
func ParseBundle ¶
func ParseBundle(raw RawDataBundle) (b Bundle)
func (*Bundle) AggregateMentorships ¶
func (r *Bundle) AggregateMentorships()
type GoogleSheetResponse ¶
type GoogleSheetResponse struct { ValueRanges []struct { Range string `json:"range"` Values [][]string `json:"values"` } `json:"valueRanges"` }
func GetData ¶
func GetData(url string) (gs GoogleSheetResponse, err error)
func (GoogleSheetResponse) GetInterns ¶
func (r GoogleSheetResponse) GetInterns() [][]string
func (GoogleSheetResponse) GetJobs ¶
func (r GoogleSheetResponse) GetJobs() [][]string
func (GoogleSheetResponse) GetMentorships ¶
func (r GoogleSheetResponse) GetMentorships() [][]string
func (GoogleSheetResponse) GetPeople ¶
func (r GoogleSheetResponse) GetPeople() [][]string
type Mentorship ¶
type ParsingError ¶
type ParsingError string
func (ParsingError) Error ¶
func (pe ParsingError) Error() string
type Person ¶
type Person struct { RegisteredAt string `json:"registeredAt"` Name string `json:"name"` TwitterHandle string `json:"TwitterHandle"` GitHub string `json:"GitHub"` LinkedIn string `json:"LinkedIn"` Interests string `json:"Interests"` Goals string `json:"Goals"` Mentor string `json:"Mentor"` Stackoverflow string `json:"Stackoverflow"` // processed data Slug string Mentorships []Mentorship }
Click to show internal directories.
Click to hide internal directories.