hacktivityexplorer

package
v0.0.0-...-76ee762 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find_The_Duper

func Find_The_Duper(opts args.Options, resolved_report_info []Resolved_Report_Info) string

func Load_Reports

func Load_Reports(wg *sync.WaitGroup, client *httpclient.HttpClient, data string, resultChan chan<- bool)

Types

type GraphQLSchema

type GraphQLSchema struct {
	Data struct {
		Me struct {
			ID       string `json:"id"`
			Typename string `json:"__typename"`
		} `json:"me"`
		HacktivityItems struct {
			TotalCount int `json:"total_count"`
			PageInfo   struct {
				EndCursor   string `json:"endCursor"`
				HasNextPage bool   `json:"hasNextPage"`
				Typename    string `json:"__typename"`
			} `json:"pageInfo"`
			Edges []struct {
				Node struct {
					ID         string `json:"id"`
					DatabaseID string `json:"databaseId"`
					Typename   string `json:"__typename"`
					Type       string `json:"type"`
					Votes      struct {
						TotalCount int    `json:"total_count"`
						Typename   string `json:"__typename"`
					} `json:"votes"`
					Upvoted  bool `json:"upvoted"`
					Reporter struct {
						ID       string `json:"id"`
						Username string `json:"username"`
						Typename string `json:"__typename"`
					} `json:"reporter"`
					Team struct {
						Handle               string `json:"handle"`
						Name                 string `json:"name"`
						MediumProfilePicture string `json:"medium_profile_picture"`
						URL                  string `json:"url"`
						ID                   string `json:"id"`
						Typename             string `json:"__typename"`
					} `json:"team"`
					LatestDisclosableAction     string    `json:"latest_disclosable_action"`
					LatestDisclosableActivityAt time.Time `json:"latest_disclosable_activity_at"`
					RequiresViewPrivilege       bool      `json:"requires_view_privilege"`
					TotalAwardedAmount          any       `json:"total_awarded_amount"`
					Currency                    string    `json:"currency"`
				} `json:"node"`
				Typename string `json:"__typename"`
			} `json:"edges"`
			Typename string `json:"__typename"`
		} `json:"hacktivity_items"`
	} `json:"data"`
}

type Resolved_Report_Info

type Resolved_Report_Info struct {
	DatabaseID       string
	ReporterUsername string
}

func Get_All_Report_Info

func Get_All_Report_Info(opts args.Options, CSRF_token string) []Resolved_Report_Info

Jump to

Keyboard shortcuts

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