Documentation ¶
Index ¶
Constants ¶
View Source
const GroupKind = "groups"
View Source
const InstallationKind = "installations"
View Source
const RepoKind = "repos"
View Source
const TaskKind = "tasks"
View Source
const TeamKind = "teams"
View Source
const UserKind = "users"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Installation ¶
type Installation struct { Key *datastore.Key `datastore:"__key__"` ID int64 `json:"id"` Name string `json:"name" datastore:"name"` // TODO AddedBy的なのいる? CreatedAt time.Time `datastore:"createdAt,noindex"` UpdatedAt time.Time `datastore:"updatedAt,noindex"` }
func (Installation) IsNode ¶ added in v0.0.8
func (Installation) IsNode()
type Repo ¶
type Repo struct { Key *datastore.Key `datastore:"__key__"` ID int64 `json:"id"` Owner string `json:"owner" datastore:"owner"` Name string `json:"name" datastore:"name"` FullName string `json:"fullname" datastore:"fullname"` CreatedAt time.Time `datastore:"createdAt,noindex"` UpdatedAt time.Time `datastore:"updatedAt,noindex"` }
TODO: json, datastore
type Task ¶
type Task struct { Key *datastore.Key `datastore:"__key__"` ID int64 `json:"id"` Repo Repo `json:"repo" datastore:"repo"` RepoID int64 `json:"repoId" datastore:"repoId"` Channel string `json:"channel" datastore:"channel"` Users []*User `json:"users" datastore:"users"` UserIDs []string `json:"userIds" datastore:"userIds"` TeamID int64 `json:"teamId" datastore:"teamId"` Team *Team `json:"team" datastore:"team"` InstallationID int64 `json:"installationId" datastore:"installationId"` }
type Team ¶
type Team struct { Key *datastore.Key `datastore:"__key__"` ID int64 `json:"id"` SlackTeamID string `json:"slackTeamId" datastore:"slackTeamId"` Name string `json:"name" datastore:"name"` Token string `json:"token" datastore:"token"` Tasks []Task // TODO: Authorized github organizations がほしい CreatedAt time.Time `datastore:"createdAt,noindex"` UpdatedAt time.Time `datastore:"updatedAt,noindex"` }
type User ¶
type User struct { Key *datastore.Key `datastore:"__key__"` ID int64 `json:"id"` Name string `json:"name" datastore:"name"` Email string `json:"email" datastore:"email"` GoogleID string `json:"googleId" datastore:"googleId"` Avatar string `json:"avatar" datastore:"avatar"` Token string `json:"token" datastore:"token"` SlackID string `json:"slackId" datastore:"slackId"` SlackIsOwner string `json:"slackIsOwner" datastore:"slackIsOwner"` SlackIsAdmin string `json:"slackIsAdmin" datastore:"slackIsAdmin"` GithubID GithubID `json:"githubId" datastore:"githubId"` Reviewers Reviewers `json:"reviewers" datastore:"reviewers"` GroupID int64 `json:"groupId" datastore:"groupId"` TeamID string `json:"teamId" datastore:"teamId"` CreatedAt time.Time `datastore:"createdAt,noindex"` UpdatedAt time.Time `datastore:"updatedAt,noindex"` }
func (User) GithubWithAt ¶
func (User) ReviewersWithAt ¶
func (User) SetGithubID ¶
func (User) SetSlackID ¶
func (User) SlackWithBracketAt ¶
Click to show internal directories.
Click to hide internal directories.