ctftime

package
v0.0.0-...-e903210 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() *ctftimeApi

Types

type Event

type Event struct {
	Organizers []struct {
		ID   int    `json:"id"`
		Name string `json:"name"`
	} `json:"organizers"`
	Onsite        bool    `json:"onsite"`
	Finish        string  `json:"finish"`
	Description   string  `json:"description"`
	Weight        float64 `json:"weight"`
	Title         string  `json:"title"`
	URL           string  `json:"url"`
	IsVotableNow  bool    `json:"is_votable_now"`
	Restrictions  string  `json:"restrictions"`
	Format        string  `json:"format"`
	Start         string  `json:"start"`
	Participants  int     `json:"participants"`
	CTFTimeURL    string  `json:"ctftime_url"`
	Location      string  `json:"location"`
	LiveFeed      string  `json:"live_feed"`
	PublicVotable bool    `json:"public_votable"`
	Duration      struct {
		Hours int `json:"hours"`
		Days  int `json:"days"`
	} `json:"duration"`
	FormatID int    `json:"format_id"`
	ID       int    `json:"id"`
	CTFID    int    `json:"ctf_id"`
}

func (*Event) EventDays

func (e *Event) EventDays() ([]int, error)

type Events

type Events []*Event

func (*Events) Filter

func (events *Events) Filter(f func(chall *Event) bool) Events

Jump to

Keyboard shortcuts

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