entity

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package entity contains entities for github aggregator application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Organization

type Organization struct {
	Login            string `json:"login"`
	ID               int    `json:"id"`
	NodeID           string `json:"node_id"`
	ReposURL         string `json:"repos_url"`
	EventsURL        string `json:"events_url"`
	HooksURL         string `json:"hooks_url"`
	IssuesURL        string `json:"issues_url"`
	MembersURL       string `json:"members_url"`
	PublicMembersURL string `json:"public_members_url"`
	AvatarURL        string `json:"avatar_url"`
	Description      string `json:"description"`
}

Organization is an entity which represents body of request to "https://api.github.com/organizations" for authenticated user.

type Plan

type Plan struct {
	Name          string `json:"name"`
	Space         int    `json:"space"`
	Collabarators int    `json:"collabarators"`
	PrivateRepos  int    `json:"private_repos"`
}

Plan is an entity which represents User's entity field for Github paid plan.

type Profile

type Profile struct {
	Username   string `json:"login"`
	AvatarURL  string `json:"avatar_url"`
	ProfileURL string `json:"html_url"`
}

Profile is an entity for navbar with user info.

type User

type User struct {
	Login                   string    `json:"login"`
	ID                      int       `json:"id"`
	NodeID                  string    `json:"node_id"`
	AvatarURL               string    `json:"avatar_url"`
	GravatarID              string    `json:"gravatar_id"`
	URL                     string    `json:"url"`
	HTMLURL                 string    `json:"html_url"`
	FollowersURL            string    `json:"followers_url"`
	FollowingURL            string    `json:"following_url"`
	GistsURL                string    `json:"gists_url"`
	StarredURL              string    `json:"starred_url"`
	SubscriptionsURL        string    `json:"subscriptions_url"`
	OrganizationsURL        string    `json:"organizations_url"`
	ReposURL                string    `json:"repos_url"`
	EventsURL               string    `json:"events_url"`
	ReceivedEventsURL       string    `json:"received_events_url"`
	Type                    string    `json:"type"`
	SiteAdmin               bool      `json:"site_admin"`
	Name                    string    `json:"name"`
	Company                 string    `json:"company"`
	Blog                    string    `json:"blog"`
	Location                string    `json:"location"`
	Email                   string    `json:"email"`
	Hireable                bool      `json:"hireable"`
	Bio                     string    `json:"bio"`
	PublicRepos             int       `json:"public_repos"`
	PublicGists             int       `json:"public_gists"`
	CreatedAt               time.Time `json:"created_renderat"`
	UpdatedAt               time.Time `json:"updated_renderat"`
	PrivateGists            int       `json:"private_gisrenderts"`
	TotalPrivateRepos       int       `json:"total_private_repos"`
	OwnedPrivateRepos       int       `json:"owned_private_repos"`
	DiskUsage               int       `json:"disk_usage"`
	Collabarators           int       `json:"collabarators"`
	TwoFactorAuthentication bool      `json:"two_factor_authentication"`
	GHPlan                  Plan      `json:"plan"`
}

User is an entity which represents body of request to "https://api.github.com/" for authenticated user.

Jump to

Keyboard shortcuts

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