models

package
v0.0.0-...-e7380fd Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2017 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Categories

type Categories struct {
	Categories []Category `json:"results"`
	TotalCount int        `json:"total_count"`
	Count      int        `json:"count"`
}

Categories

type Category

type Category struct {
	Name      string `json:"name"`
	SortName  string `json:"sort_name"`
	ID        int    `json:"id"`
	ShortName string `json:"shortname"`
}

Category

type Comment

type Comment struct {
	MemberID    int    `json:"member_id"`
	MemberName  string `json:"member_name"`
	CommentID   int    `json:"event_comment_id"`
	EventID     string `json:"event_id"`
	GroupID     int    `json:"group_id"`
	CommentText string `json:"comment"`
}

Comment is a meetup event comment

type Comments

type Comments struct {
	Comments   []Comment `json:"results"`
	TotalCount int       `json:"total_count"`
	Count      int       `json:"count"`
}

Comments wraps a slice of Event for unmarshalling the results array. It also contains meta fields from the response.

type Event

type Event struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Link     string `json:"link"`
	YesRSVP  int    `json:"yes_rsvp_count"`
	Waitlist int    `json:"waitlist_count"`
	Group    Group  `json:"group"`
	Venue    Venue  `json:"venue"`
}

Event describes a meetup event and pertinent information such as id, comments, etc.

type Events

type Events struct {
	Events     []Event `json:"results"`
	TotalCount int     `json:"total_count"`
	Count      int     `json:"count"`
}

Events wraps a slice of Event for unmarshalling the results array. It also contains meta fields from the response.

type Group

type Group struct {
	Name        string `json:"name"`
	URLName     string `json:"urlname"`
	ID          int    `json:"id"`
	Link        string `json:"link"`
	MemberCount int    `json:"members"`
	Organizer   Member `json:"organizer"`
}

Group describes a meetup group

type Groups

type Groups struct {
	Groups     []Group `json:"results"`
	TotalCount int     `json:"total_count"`
	Count      int     `json:"count"`
}

Groups wraps a slice of Group for unmarshalling the results array. It also contains meta fields from the response.

type Member

type Member struct {
	Name   string  `json:"name"`
	Status string  `json:"status"`
	ID     int     `json:"id"`
	Topics []Topic `json:"topics"`
}

Member represents a Meetup group member

type Members

type Members struct {
	Members    []Member `json:"results"`
	TotalCount int      `json:"total_count"`
	Count      int      `json:"count"`
}

Members wraps a slice of Member and also contains meta-fields from the meetup API response

type Rating

type Rating struct {
	MemberID    int    `json:"member_id"`
	MemberName  string `json:"member_name"`
	EventID     string `json:"event_id"`
	GroupID     int    `json:"group_id"`
	Rating      int    `json:"rating"`
	RatingCount int    `json:"rating_count"`
}

Rating is submitted for a particular meetup event by a member

type Ratings

type Ratings struct {
	Ratings    []Rating `json:"results"`
	TotalCount int      `json:"total_count"`
	Count      int      `json:"count"`
}

Ratings wraps a slice of Rating for unmarshalling the results array. It also contains meta fields from the response.

type Topic

type Topic struct {
	Name   string `json:"name"`
	URLKey string `json:"urlkey"`
	ID     int    `json:"id"`
}

Topic describes a topic of interest that is listed for a member, group, etc.

type Venue

type Venue struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Venue represents the location for a meetup

Jump to

Keyboard shortcuts

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