returntypes

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedUser

type AuthorizedUser struct {
	ID          uint      `json:"id"`
	Email       string    `json:"email"`
	Name        string    `json:"name"`
	AvatarURL   string    `json:"avatarUrl"`
	GithubLogin string    `json:"githubLogin"`
	CreatedAt   time.Time `json:"createdAt"`
}

type CheckAuthResponse

type CheckAuthResponse struct {
	User AuthorizedUser `json:"user"`
}

type Error

type Error struct {
	Error string `json:"error,omitempty"`
}

type IDResponse

type IDResponse struct {
	ID int `json:"id"`
}

type OrgInfo

type OrgInfo struct {
	Provider              string `json:"provider"`
	Name                  string `json:"name"`
	HasActiveSubscription bool   `json:"hasActiveSubscription"`
	CanModify             bool   `json:"canModify"`
	CantModifyReason      string `json:"cantModifyReason"`
}

type RepoInfo

type RepoInfo struct {
	ID               uint   `json:"id"`
	HookID           string `json:"hookId"` // needed only for tests
	Name             string `json:"name"`
	Organization     string `json:"organization,omitempty"`
	IsAdmin          bool   `json:"isAdmin"`
	IsActivated      bool   `json:"isActivated,omitempty"`
	IsPrivate        bool   `json:"isPrivate,omitempty"`
	IsCreating       bool   `json:"isCreating,omitempty"`
	IsDeleting       bool   `json:"isDeleting,omitempty"`
	Language         string `json:"language,omitempty"`
	CreateFailReason string `json:"createFailReason,omitempty"`
}

type RepoListResponse

type RepoListResponse struct {
	Repos                   []RepoInfo         `json:"repos"`
	PrivateRepos            []RepoInfo         `json:"privateRepos"`
	PrivateReposWereFetched bool               `json:"privateReposWereFetched"`
	Organizations           map[string]OrgInfo `json:"organizations"`
}

type SubInfo

type SubInfo struct {
	SeatsCount   int    `json:"seatsCount"`
	Status       string `json:"status"`
	Version      int    `json:"version"`
	PricePerSeat string `json:"pricePerSeat"`
	CancelURL    string `json:"cancelUrl"`

	TrialAllowanceInDays int    `json:"trialAllowanceInDays"`
	PaddleTrialDaysAuth  string `json:"paddleTrialDaysAuth"`
}

type WrappedRepoInfo

type WrappedRepoInfo struct {
	Repo RepoInfo `json:"repo"`
}

Jump to

Keyboard shortcuts

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