Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanDescription ¶
Clean the description of a CTF event, removing \r\n
Types ¶
type Client ¶ added in v0.0.6
func NewClient ¶ added in v0.0.6
func NewClient(transport http.RoundTripper) *Client
NewClient constructs a new Client. If transport is nil, a default transport is used.
func (*Client) GetCTFEvent ¶ added in v0.0.6
Retrieve information about a specific CTF event on CTFTime
func (*Client) GetCTFEvents ¶ added in v0.0.6
Retrieve all active and upcoming CTF events from ctftime.org/api/v1/events/
func (*Client) GetCTFTeam ¶ added in v0.0.6
Get information about a specific team on CTFTime
func (*Client) GetTopTeams ¶ added in v0.0.6
type Event ¶
type Event struct { CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time Hidden bool ID uint64 `json:"id"` CTFID int `json:"ctf_id"` Title string `json:"title"` Description string `json:"description"` URL string `json:"url"` Logo string `json:"logo"` Weight float64 `json:"weight"` Onsite bool `json:"onsite"` Location string `json:"location"` Restrictions string `json:"restrictions"` Format string `json:"format"` FormatID int `json:"format_id"` Participants int `json:"participants"` CTFTimeURL string `json:"ctftime_url"` LiveFeed string `json:"live_feed"` IsVotableNow bool `json:"is_votable_now"` PublicVotable bool `json:"public_votable"` Start time.Time `json:"start"` Finish time.Time `json:"finish"` }
Struct for API Endpoint ctftime.org/api/v1/events/
func CleanCTFEvents ¶
Clean CTF Events, return only 'Open' Jeopardy Style CTFs that are either active or upcoming
type Team ¶
type Team struct { ID int `json:"id"` Academic bool `json:"academic"` PrimaryAlias string `json:"primary_alias"` Name string `json:"name"` Logo string `json:"logo"` Country string `json:"country"` Aliases []string `json:"aliases"` Rating map[string]struct { RatingPlace int `json:"rating_place"` OrganizerPoints float64 `json:"organizer_points"` RatingPoints float64 `json:"rating_points"` CountryPlace int `json:"country_place"` } `json:"rating"` }
Struct for API Endpoint ctftime.org/api/v1/teams/
Click to show internal directories.
Click to hide internal directories.