Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GetEvent(eventID int, options ...OptionFunc) (*Event, *RateLimit, error)
- func (c *Client) GetEvents(params *GetEventsParams) ([]*Event, *RateLimit, error)
- func (c *Client) GetGroup(groupName string, options ...OptionFunc) (*Group, *RateLimit, error)
- func (c *Client) GetGroupEvents(groupName string, params *GetEventsParams) ([]*Event, *RateLimit, error)
- type Event
- type GetEventsParams
- type Group
- type OptionFunc
- type RateLimit
- type SortEnum
Constants ¶
View Source
const (
// Version represents go-doorkeeper version
Version = "v0.1.10"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { UserAgent string // contains filtered or unexported fields }
A Client manages communication with the Doorkeeper API
func (*Client) GetEvents ¶
func (c *Client) GetEvents(params *GetEventsParams) ([]*Event, *RateLimit, error)
GetEvents returns events
func (*Client) GetGroupEvents ¶
func (c *Client) GetGroupEvents(groupName string, params *GetEventsParams) ([]*Event, *RateLimit, error)
GetGroupEvents returns group events
type Event ¶
type Event struct { Title string ID int StartsAt time.Time EndsAt time.Time VenueName string Address string Lat *float64 Long *float64 PublishedAt time.Time UpdatedAt time.Time Group int Description string PublicURL string Participants int Waitlisted int TicketLimit int }
A Event represents doorkeeper event
type GetEventsParams ¶
type GetEventsParams struct { Page int Locale string Sort SortEnum Since *time.Time Until *time.Time Query string Callback string }
GetEventsParams manages params of GetEvents
type Group ¶
type Group struct { ID int `json:"id"` Name string `json:"name"` CountryCode string `json:"country_code"` Logo string `json:"logo"` Description string `json:"description"` PublicURL string `json:"public_url"` MembersCount int `json:"members_count"` }
A Group represents doorkeeper group
type OptionFunc ¶
OptionFunc represents base optional param
type SortEnum ¶ added in v0.1.1
type SortEnum struct {
// contains filtered or unexported fields
}
SortEnum represents sort enum
func SortByPublishedAt ¶ added in v0.1.1
func SortByPublishedAt() SortEnum
SortByPublishedAt sort by published_at
func SortByStartsAt ¶ added in v0.1.1
func SortByStartsAt() SortEnum
SortByStartsAt sort by starts_at
func SortByUpdatedAt ¶ added in v0.1.1
func SortByUpdatedAt() SortEnum
SortByUpdatedAt sort by updated_at
Source Files ¶
Click to show internal directories.
Click to hide internal directories.