Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChallengeData ¶
type ChallengeData struct {
Files []fileUrl `json:"files"`
Description string `json:"description"`
Author string `json:"author"`
Points int `json:"points"`
ID string `json:"id"`
Name string `json:"name"`
Category string `json:"category"`
Solves int `json:"solves"`
}
func (*ChallengeData) DownloadFilesToDir ¶
func (c *ChallengeData) DownloadFilesToDir(dstFolder string) error
DownloadFiles download all file from the challenge to destination folder
func (*ChallengeData) WriteTemplatesToDirDefault ¶
func (c *ChallengeData) WriteTemplatesToDirDefault(dstFolder string) error
Same as WriteTemplatesToDir but use default directory `template`
type Challenges ¶
type Challenges struct {
Kind string `json:"kind"`
Message string `json:"message"`
Data []ChallengeData `json:"data"`
}
type RCTFScraper ¶
func InitFromUrlToken ¶
func InitFromUrlToken(Url string) (*RCTFScraper, error)
func (*RCTFScraper) GetChalls ¶
func (r *RCTFScraper) GetChalls() (*Challenges, error)
Click to show internal directories.
Click to hide internal directories.