github.com/agrison/harpoon@v0.0.0-20180819075247-a667a15fd0eb/structs_ping.go (about)

     1  package main
     2  
     3  import "time"
     4  
     5  // HookPing represents a ping message sent by Github
     6  type HookPing struct {
     7  	Zen    string `json:"zen"`
     8  	HookID int    `json:"hook_id"`
     9  	Hook   struct {
    10  		URL     string   `json:"url"`
    11  		TestURL string   `json:"test_url"`
    12  		PingURL string   `json:"ping_url"`
    13  		ID      int      `json:"id"`
    14  		Name    string   `json:"name"`
    15  		Active  bool     `json:"active"`
    16  		Events  []string `json:"events"`
    17  		Config  struct {
    18  			URL         string `json:"url"`
    19  			ContentType string `json:"content_type"`
    20  			InsecureSsl string `json:"insecure_ssl"`
    21  			Secret      string `json:"secret"`
    22  		} `json:"config"`
    23  		LastResponse struct {
    24  			Code    interface{} `json:"code"`
    25  			Status  string      `json:"status"`
    26  			Message interface{} `json:"message"`
    27  		} `json:"last_response"`
    28  		UpdatedAt time.Time `json:"updated_at"`
    29  		CreatedAt time.Time `json:"created_at"`
    30  	} `json:"hook"`
    31  	Repository struct {
    32  		ID       int    `json:"id"`
    33  		Name     string `json:"name"`
    34  		FullName string `json:"full_name"`
    35  		Owner    struct {
    36  			Login             string `json:"login"`
    37  			ID                int    `json:"id"`
    38  			AvatarURL         string `json:"avatar_url"`
    39  			GravatarID        string `json:"gravatar_id"`
    40  			URL               string `json:"url"`
    41  			HTMLURL           string `json:"html_url"`
    42  			FollowersURL      string `json:"followers_url"`
    43  			FollowingURL      string `json:"following_url"`
    44  			GistsURL          string `json:"gists_url"`
    45  			StarredURL        string `json:"starred_url"`
    46  			SubscriptionsURL  string `json:"subscriptions_url"`
    47  			OrganizationsURL  string `json:"organizations_url"`
    48  			ReposURL          string `json:"repos_url"`
    49  			EventsURL         string `json:"events_url"`
    50  			ReceivedEventsURL string `json:"received_events_url"`
    51  			Type              string `json:"type"`
    52  			SiteAdmin         bool   `json:"site_admin"`
    53  		} `json:"owner"`
    54  		Private          bool        `json:"private"`
    55  		HTMLURL          string      `json:"html_url"`
    56  		Description      string      `json:"description"`
    57  		Fork             bool        `json:"fork"`
    58  		URL              string      `json:"url"`
    59  		ForksURL         string      `json:"forks_url"`
    60  		KeysURL          string      `json:"keys_url"`
    61  		CollaboratorsURL string      `json:"collaborators_url"`
    62  		TeamsURL         string      `json:"teams_url"`
    63  		HooksURL         string      `json:"hooks_url"`
    64  		IssueEventsURL   string      `json:"issue_events_url"`
    65  		EventsURL        string      `json:"events_url"`
    66  		AssigneesURL     string      `json:"assignees_url"`
    67  		BranchesURL      string      `json:"branches_url"`
    68  		TagsURL          string      `json:"tags_url"`
    69  		BlobsURL         string      `json:"blobs_url"`
    70  		GitTagsURL       string      `json:"git_tags_url"`
    71  		GitRefsURL       string      `json:"git_refs_url"`
    72  		TreesURL         string      `json:"trees_url"`
    73  		StatusesURL      string      `json:"statuses_url"`
    74  		LanguagesURL     string      `json:"languages_url"`
    75  		StargazersURL    string      `json:"stargazers_url"`
    76  		ContributorsURL  string      `json:"contributors_url"`
    77  		SubscribersURL   string      `json:"subscribers_url"`
    78  		SubscriptionURL  string      `json:"subscription_url"`
    79  		CommitsURL       string      `json:"commits_url"`
    80  		GitCommitsURL    string      `json:"git_commits_url"`
    81  		CommentsURL      string      `json:"comments_url"`
    82  		IssueCommentURL  string      `json:"issue_comment_url"`
    83  		ContentsURL      string      `json:"contents_url"`
    84  		CompareURL       string      `json:"compare_url"`
    85  		MergesURL        string      `json:"merges_url"`
    86  		ArchiveURL       string      `json:"archive_url"`
    87  		DownloadsURL     string      `json:"downloads_url"`
    88  		IssuesURL        string      `json:"issues_url"`
    89  		PullsURL         string      `json:"pulls_url"`
    90  		MilestonesURL    string      `json:"milestones_url"`
    91  		NotificationsURL string      `json:"notifications_url"`
    92  		LabelsURL        string      `json:"labels_url"`
    93  		ReleasesURL      string      `json:"releases_url"`
    94  		DeploymentsURL   string      `json:"deployments_url"`
    95  		CreatedAt        time.Time   `json:"created_at"`
    96  		UpdatedAt        time.Time   `json:"updated_at"`
    97  		PushedAt         time.Time   `json:"pushed_at"`
    98  		GitURL           string      `json:"git_url"`
    99  		SSHURL           string      `json:"ssh_url"`
   100  		CloneURL         string      `json:"clone_url"`
   101  		SvnURL           string      `json:"svn_url"`
   102  		Homepage         interface{} `json:"homepage"`
   103  		Size             int         `json:"size"`
   104  		StargazersCount  int         `json:"stargazers_count"`
   105  		WatchersCount    int         `json:"watchers_count"`
   106  		Language         string      `json:"language"`
   107  		HasIssues        bool        `json:"has_issues"`
   108  		HasDownloads     bool        `json:"has_downloads"`
   109  		HasWiki          bool        `json:"has_wiki"`
   110  		HasPages         bool        `json:"has_pages"`
   111  		ForksCount       int         `json:"forks_count"`
   112  		MirrorURL        interface{} `json:"mirror_url"`
   113  		OpenIssuesCount  int         `json:"open_issues_count"`
   114  		Forks            int         `json:"forks"`
   115  		OpenIssues       int         `json:"open_issues"`
   116  		Watchers         int         `json:"watchers"`
   117  		DefaultBranch    string      `json:"default_branch"`
   118  	} `json:"repository"`
   119  	Sender struct {
   120  		Login             string `json:"login"`
   121  		ID                int    `json:"id"`
   122  		AvatarURL         string `json:"avatar_url"`
   123  		GravatarID        string `json:"gravatar_id"`
   124  		URL               string `json:"url"`
   125  		HTMLURL           string `json:"html_url"`
   126  		FollowersURL      string `json:"followers_url"`
   127  		FollowingURL      string `json:"following_url"`
   128  		GistsURL          string `json:"gists_url"`
   129  		StarredURL        string `json:"starred_url"`
   130  		SubscriptionsURL  string `json:"subscriptions_url"`
   131  		OrganizationsURL  string `json:"organizations_url"`
   132  		ReposURL          string `json:"repos_url"`
   133  		EventsURL         string `json:"events_url"`
   134  		ReceivedEventsURL string `json:"received_events_url"`
   135  		Type              string `json:"type"`
   136  		SiteAdmin         bool   `json:"site_admin"`
   137  	} `json:"sender"`
   138  }