Documentation ¶
Overview ¶
Package event provides implementations of getting events from each event provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJson ¶
GetJson sends get request to the url passed by the argument and returns json-formatted event data.
func SetTimezone ¶ added in v0.2.0
func SetTimezone(t string)
SetTimezone sets timezone specified in the configuration file.
Types ¶
type Api ¶
type Api interface { // Get gets a slice of Event using API depending on api providers. Get(baseurl, keyword, nickname string, places []string) ([]Event, error) }
Api is an interface to get a slice of Event
type Atnd ¶
type Atnd struct { Result struct { Results_returned int Results_start int Events []struct { Event struct { Event_id string Title string Catch string Event_url string Started_at string Address string Place string Description string } } } }
Atnd implements Api Atnd represents event data returned by ATND API.
type Connpass ¶
type Connpass struct {
// contains filtered or unexported fields
}
Connpass implements Api Connpass represents event data returned by Connpass.
type Doorkeeper ¶
type Doorkeeper struct {
// contains filtered or unexported fields
}
Doorkeeper implements Api Doorkeeper represents event data returned by DoorKeeper API.
type Event ¶
type Event struct { Id string Title string Summary string Url string Started_at string Place string Description string }
Event represents details of an event. Event is sent to Slack in this format. Atcual event type depends on event api providers, so provider-specific event type is defined in the each file and converted to this Event.
type Eventbrite ¶ added in v0.2.0
type Eventbrite struct {
// contains filtered or unexported fields
}
Eventbrite implements Api Eventbrite represents event data returned by Eventbrite.
type Meetup ¶ added in v0.2.0
type Meetup struct {
// contains filtered or unexported fields
}
Meetup implements Api Meetup represents event data returned by Meetup.
type Strtacademy ¶
type Strtacademy struct {
// contains filtered or unexported fields
}
Strtacademy implements Api Strtacademy represents event data returned by street academy API.