Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Release ¶
type Release struct { ID uuid.UUID `json:"id" db:"id"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` RepositoryID uuid.UUID `json:"repository_id" db:"repository_id"` Version string `json:"version" db:"version"` Major int `json:"major" db:"major"` Minor int `json:"minor" db:"minor"` Patch int `json:"patch" db:"patch"` Development string `json:"development" db:"development"` }
Release of a repository
type Repository ¶
type Repository struct { ID uuid.UUID `json:"id" db:"id"` CreatedAt time.Time `json:"-" db:"created_at"` UpdatedAt time.Time `json:"-" db:"updated_at"` Owner string `json:"owner,omitempty" db:"owner"` Name string `json:"name,omitempty" db:"name"` Description string `json:"description,omitempty" db:"description"` URL string `json:"url,omitempty" db:"url"` }
Repository currnt matches github repo
type Subscriptions ¶
type Subscriptions struct { ID int `json:"-" db:"id"` User uuid.UUID `json:"user" db:"user"` Repo uuid.UUID `json:"repo" db:"repo"` }
Subscriptions to repos from users
type User ¶
type User struct { ID uuid.UUID `json:"id,omitempty" db:"id"` CreatedAt time.Time `json:"-" db:"created_at"` UpdatedAt time.Time `json:"-" db:"updated_at"` Email string `json:"email,omitempty" db:"email"` GithubID string `json:"github_id,omitempty" db:"github_id"` GithubUserName string `json:"github_user_name,omitempty" db:"github_user_name"` FirstName string `json:"first_name,omitempty" db:"first_name"` LastName string `json:"last_name,omitempty" db:"last_name"` AccessToken string `json:"access_token,omitempty" ab:"access_token"` }
User they do things
func (*User) BeforeCreate ¶
BeforeCreate is called from GORM
Click to show internal directories.
Click to hide internal directories.