Skip to content
Snippets Groups Projects
Select Git revision
  • 0132c299bd6799fcc05dde45c477033dbc659c23
  • master default protected
2 results

structs.go

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    structs.go 1.19 KiB
    package assignment2
    
    //************* Commits ******************
    
    type IDS struct {
    	Name string `json:"path_with_namespace"`
    	ID   int    `json:"id"`
    }
    
    type Temp struct {
    	TempInt int `json:"x-Total"`
    }
    
    type RepoAndCommit struct {
    	Repository string `json:"repository"`
    	Commits    int    `json:"commits"`
    }
    
    type Commits struct {
    	Repos []RepoAndCommit
    	Auth  bool `json:"auth"`
    }
    
    // *********** Language ************
    
    type IDLang struct {
    	ID int `json:"id"`
    }
    
    type TestLang struct {
    	Lang  string
    	Count int
    }
    
    type Language struct {
    	Languages []string `json:"lagnguages"`
    	Auth      bool     `json:"auth"`
    }
    
    // *********** Status ************
    type Status struct {
    	Gitlab   int     `json:"gitlab"`
    	Database int     `json:"database"`
    	Uptime   float64 `json:"uptime"`
    	Version  string  `json:"version"`
    }
    
    //************ Webhook ************
    
    type WebhookRegistration struct {
    	Event string `json:"event"`
    	URL   string `json:"urk2`
    }
    
    type Webhooks struct {
    	ID    int     `json:"id"`
    	Event string  `json:"Event"`
    	URL   string  `json:"url"`
    	Time  float64 `json:"time"`
    }
    
    type WebhooksInvocation struct {
    	Event  string   `json:"event"`
    	Params []string `json:"params"`
    	Time   float64  `json:"time"`
    }