Documentation ¶
Index ¶
- Constants
- func Bool(v bool) *bool
- func Int(v int) *int
- func SliceString(v []string) *[]string
- func String(v string) *string
- type Client
- func (c *Client) CreateTeamPost(teamName string, req *CreateTeamPostRequest) (*CreateTeamPostResponse, error)
- func (c *Client) CreateTeamPostComment(teamName string, postNumber int, req *CreateTeamPostCommentRequest) (*CreateTeamPostCommentResponse, error)
- func (c *Client) CreateTeamPostCommentStar(teamName string, commentID int, req *CreateTeamPostCommentStarRequest) error
- func (c *Client) CreateTeamPostStar(teamName string, postNumber int, req *CreateTeamPostStarRequest) error
- func (c *Client) CreateTeamPostWatch(teamName string, postNumber int) error
- func (c *Client) GetTeam(teamName string) (*GetTeamResponse, error)
- func (c *Client) GetTeamComment(teamName string, commentID int) (*GetTeamCommentResponse, error)
- func (c *Client) GetTeamCommentStargazers(teamName string, commentID int, req *GetTeamCommentStargazersRequest) (*GetTeamCommentStargazersResponse, error)
- func (c *Client) GetTeamMembers(teamName string, req *GetTeamMembersRequest) (*GetTeamMembersResponse, error)
- func (c *Client) GetTeamPost(teamName string, number int) (*GetTeamPostResponse, error)
- func (c *Client) GetTeamPostComments(teamName string, req *GetTeamPostCommentRequest) (*GetTeamPostCommentsResponse, error)
- func (c *Client) GetTeamPostStarGazers(teamName string, postNumber int, req *GetTeamPostStargazersRequest) (*GetTeamPostStargazersResponse, error)
- func (c *Client) GetTeamPostWatchers(teamName string, postNumber int, req *GetTeamPostWatchersRequest) (*GetTeamPostWatchersResponse, error)
- func (c *Client) GetTeamPosts(teamName string, req *GetTeamPostsRequest) (*GetTeamPostsResponse, error)
- func (c *Client) GetTeamStats(teamName string) (*GetTeamStatsResponse, error)
- func (c *Client) GetTeams(req *GetTeamsRequest) (*GetTeamsResponse, error)
- func (c *Client) GetUser() (*GetUserResponse, error)
- func (c *Client) UpdateTeamPost(teamName string, postNumber int, req *UpdateTeamPostRequest) (*UpdateTeamPostResponse, error)
- func (c *Client) UpdateTeamPostComment(teamName string, commentID int, req *UpdateTeamPostCommentRequest) (*UpdateTeamPostCommentResponse, error)
- type Comment
- type CommentMember
- type Config
- type CreateTeamPostCommentRequest
- type CreateTeamPostCommentResponse
- type CreateTeamPostCommentStarRequest
- type CreateTeamPostRequest
- type CreateTeamPostResponse
- type CreateTeamPostStarRequest
- type EsaError
- type GetTeamCommentResponse
- type GetTeamCommentStargazersRequest
- type GetTeamCommentStargazersResponse
- type GetTeamMembersRequest
- type GetTeamMembersResponse
- type GetTeamPostCommentRequest
- type GetTeamPostCommentResponse
- type GetTeamPostCommentsResponse
- type GetTeamPostResponse
- type GetTeamPostStargazersRequest
- type GetTeamPostStargazersResponse
- type GetTeamPostWatchersRequest
- type GetTeamPostWatchersResponse
- type GetTeamPostsRequest
- type GetTeamPostsResponse
- type GetTeamResponse
- type GetTeamStatsResponse
- type GetTeamsRequest
- type GetTeamsResponse
- type GetUserResponse
- type Member
- type OriginalRevision
- type Pagination
- type PaginationRequest
- type PaginationResponse
- type Post
- type PostMember
- type Stargazer
- type Team
- type TeamStats
- type UpdateTeamPostCommentRequest
- type UpdateTeamPostCommentResponse
- type UpdateTeamPostRequest
- type UpdateTeamPostResponse
- type User
- type Watcher
Constants ¶
View Source
const (
Version = "0.1.0"
)
Variables ¶
This section is empty.
Functions ¶
func SliceString ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateTeamPost ¶
func (c *Client) CreateTeamPost(teamName string, req *CreateTeamPostRequest) (*CreateTeamPostResponse, error)
func (*Client) CreateTeamPostComment ¶
func (c *Client) CreateTeamPostComment(teamName string, postNumber int, req *CreateTeamPostCommentRequest) (*CreateTeamPostCommentResponse, error)
func (*Client) CreateTeamPostCommentStar ¶
func (c *Client) CreateTeamPostCommentStar(teamName string, commentID int, req *CreateTeamPostCommentStarRequest) error
func (*Client) CreateTeamPostStar ¶
func (c *Client) CreateTeamPostStar(teamName string, postNumber int, req *CreateTeamPostStarRequest) error
func (*Client) CreateTeamPostWatch ¶
func (*Client) GetTeamComment ¶
func (c *Client) GetTeamComment(teamName string, commentID int) (*GetTeamCommentResponse, error)
func (*Client) GetTeamCommentStargazers ¶
func (c *Client) GetTeamCommentStargazers(teamName string, commentID int, req *GetTeamCommentStargazersRequest) (*GetTeamCommentStargazersResponse, error)
func (*Client) GetTeamMembers ¶
func (c *Client) GetTeamMembers(teamName string, req *GetTeamMembersRequest) (*GetTeamMembersResponse, error)
func (*Client) GetTeamPost ¶
func (c *Client) GetTeamPost(teamName string, number int) (*GetTeamPostResponse, error)
func (*Client) GetTeamPostComments ¶
func (c *Client) GetTeamPostComments(teamName string, req *GetTeamPostCommentRequest) (*GetTeamPostCommentsResponse, error)
func (*Client) GetTeamPostStarGazers ¶
func (c *Client) GetTeamPostStarGazers(teamName string, postNumber int, req *GetTeamPostStargazersRequest) (*GetTeamPostStargazersResponse, error)
func (*Client) GetTeamPostWatchers ¶
func (c *Client) GetTeamPostWatchers(teamName string, postNumber int, req *GetTeamPostWatchersRequest) (*GetTeamPostWatchersResponse, error)
func (*Client) GetTeamPosts ¶
func (c *Client) GetTeamPosts(teamName string, req *GetTeamPostsRequest) (*GetTeamPostsResponse, error)
func (*Client) GetTeamStats ¶
func (c *Client) GetTeamStats(teamName string) (*GetTeamStatsResponse, error)
func (*Client) GetTeams ¶
func (c *Client) GetTeams(req *GetTeamsRequest) (*GetTeamsResponse, error)
func (*Client) GetUser ¶
func (c *Client) GetUser() (*GetUserResponse, error)
func (*Client) UpdateTeamPost ¶
func (c *Client) UpdateTeamPost(teamName string, postNumber int, req *UpdateTeamPostRequest) (*UpdateTeamPostResponse, error)
func (*Client) UpdateTeamPostComment ¶
func (c *Client) UpdateTeamPostComment(teamName string, commentID int, req *UpdateTeamPostCommentRequest) (*UpdateTeamPostCommentResponse, error)
type Comment ¶
type Comment struct { ID int `json:"id"` BodyMD string `json:"body_md"` BodyHTML string `json:"body_html"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` URL string `json:"url"` CreatedBy CommentMember `json:"created_by"` StargazersCount int `json:"stargazers_count"` Star bool `json:"star"` }
type CommentMember ¶
type CreateTeamPostCommentResponse ¶
type CreateTeamPostCommentResponse struct {
Comment
}
type CreateTeamPostCommentStarRequest ¶
type CreateTeamPostCommentStarRequest struct {
Body *string `json:"body"`
}
type CreateTeamPostRequest ¶
type CreateTeamPostResponse ¶
type CreateTeamPostResponse struct {
Post
}
type CreateTeamPostStarRequest ¶
type CreateTeamPostStarRequest struct {
Body *string `json:"body"`
}
type GetTeamCommentResponse ¶
type GetTeamCommentResponse struct {
Comment
}
type GetTeamCommentStargazersRequest ¶
type GetTeamCommentStargazersRequest struct {
PaginationRequest
}
type GetTeamCommentStargazersResponse ¶
type GetTeamCommentStargazersResponse struct { Stargazers []Stargazer `json:"stargazers"` PaginationResponse }
type GetTeamMembersRequest ¶
type GetTeamMembersRequest struct { TeamName string PaginationRequest }
type GetTeamMembersResponse ¶
type GetTeamMembersResponse struct { Members []Member `json:"members"` PaginationResponse }
type GetTeamPostCommentRequest ¶
type GetTeamPostCommentRequest struct { PostNumber int PaginationRequest }
type GetTeamPostCommentResponse ¶
type GetTeamPostCommentResponse struct {
Comment
}
type GetTeamPostCommentsResponse ¶
type GetTeamPostCommentsResponse struct { Comments []Comment `json:"comments"` PaginationResponse }
type GetTeamPostResponse ¶
type GetTeamPostResponse struct {
Post
}
type GetTeamPostStargazersRequest ¶
type GetTeamPostStargazersRequest struct {
PaginationRequest
}
type GetTeamPostStargazersResponse ¶
type GetTeamPostStargazersResponse struct { Stargazers []Stargazer `json:"stargazers"` PaginationResponse }
type GetTeamPostWatchersRequest ¶
type GetTeamPostWatchersRequest struct {
PaginationRequest
}
type GetTeamPostWatchersResponse ¶
type GetTeamPostWatchersResponse struct { Watchers []Watcher `json:"watchers"` PaginationResponse }
type GetTeamPostsRequest ¶
type GetTeamPostsRequest struct { Q *string Include *string Sort *string Order *string PaginationRequest }
type GetTeamPostsResponse ¶
type GetTeamPostsResponse struct { Posts []Post `json:"posts"` PaginationResponse }
type GetTeamResponse ¶
type GetTeamResponse struct {
Team
}
type GetTeamStatsResponse ¶
type GetTeamStatsResponse struct {
TeamStats
}
type GetTeamsRequest ¶
type GetTeamsRequest struct {
PaginationRequest
}
type GetTeamsResponse ¶
type GetTeamsResponse struct { Teams []Team `json:"teams"` PaginationResponse }
type GetUserResponse ¶
type GetUserResponse struct {
User
}
type OriginalRevision ¶
type Pagination ¶
type PaginationRequest ¶
type PaginationResponse ¶
type Post ¶
type Post struct { Number int `json:"number"` Name string `json:"name"` FullName string `json:"full_name"` WIP bool `json:"wip"` BodyMD string `json:"body_md"` BodyHTML string `json:"body_html"` CreatedAt time.Time `json:"created_at"` Message string `json:"message"` URL string `json:"url"` UpdatedAt time.Time `json:"updated_at"` Tags []string `json:"tags"` Category *string `json:"category"` RevisionNumber int `json:"revision_number"` CreatedBy PostMember `json:"created_by"` UpdatedBy PostMember `json:"updated_by"` Kind string `json:"kind"` CommentsCount int `json:"comments_countr"` TaskCount int `json:"task_count"` DoneTasksCount int `json:"done_tasks_count"` StargazersCount int `json:"stargazers_count"` WatchersCount int `json:"watchers_count"` Star bool `json:"star"` Watch bool `json:"watch"` Comments []Comment `json:"comments"` Stargazers []Stargazer `json:"stargazers"` }
type PostMember ¶
type TeamStats ¶
type TeamStats struct { Members int `json:"members"` Posts int `json:"posts"` PostsWIP int `json:"posts_wip"` PostsShipped int `json:"posts_shipped"` Comments int `json:"comments"` Stars int `json:"stars"` DailyActiveUsers int `json:"daily_active_users"` WeeklyActiveusers int `json:"weekly_active_users"` MonthlyActiveUsers int `json:"monthly_active_users"` }
type UpdateTeamPostCommentResponse ¶
type UpdateTeamPostCommentResponse struct {
Comment
}
type UpdateTeamPostRequest ¶
type UpdateTeamPostRequest struct { Name string `json:"name"` BodyMD *string `json:"body_md"` Tags *[]string `json:"tags"` Category *string `json:"category"` WIP bool `json:"wip"` Message *string `json:"message"` CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` OriginalRevision *OriginalRevision `json:"original_revision"` }
type UpdateTeamPostResponse ¶
Click to show internal directories.
Click to hide internal directories.