generate

package
v0.0.0-...-2b9378c Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummyHTTP

func DummyHTTP() (s *httptest.Server, err error)

func ParseInterns

func ParseInterns(b *Bundle, wg *sync.WaitGroup, rawInterns [][]string)

func ParseJobs

func ParseJobs(b *Bundle, wg *sync.WaitGroup, rawJobs [][]string)

func ParseMentorships

func ParseMentorships(b *Bundle, wg *sync.WaitGroup, rawMentorships [][]string)

func ParsePeople

func ParsePeople(b *Bundle, wg *sync.WaitGroup, rawPeople [][]string)

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 Intern

type Intern struct {
	Timestamp string
	FmnUrl    string
	Email     string
}

type Job

type Job struct {
	Timestamp      string
	CompanyName    string
	Position       string
	Address        string
	Description    string
	Location       string
	Labels         string
	IsRemoteOption string
}

type Mentorship

type Mentorship struct {
	Timestamp  string `json:"timestamp"`
	FmnUrl     string `json:"fmn_url"`
	Mentorship string `json:"mentorship"`
	Goal       string `json:"goal"`
}

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
}

type RawDataBundle

type RawDataBundle interface {
	GetPeople() [][]string
	GetMentorships() [][]string
	GetJobs() [][]string
	GetInterns() [][]string
}

Jump to

Keyboard shortcuts

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