Documentation ¶
Index ¶
- type ChangeUserStatusInput
- func (v *ChangeUserStatusInput) GetClientMutationId() *string
- func (v *ChangeUserStatusInput) GetEmoji() *string
- func (v *ChangeUserStatusInput) GetExpiresAt() *time.Time
- func (v *ChangeUserStatusInput) GetLimitedAvailability() *bool
- func (v *ChangeUserStatusInput) GetMessage() *string
- func (v *ChangeUserStatusInput) GetOrganizationId() *string
- type Client
- func (c *Client) ChangeUserStatus(ctx context.Context, emoji string, expiresAt time.Time, message string, ...) error
- func (c *Client) GetContributions(ctx context.Context, user string, from, to time.Time) (githubcontrib.ContributionsResponse, error)
- func (c *Client) UserStats(ctx context.Context, username string) (Stats, error)
- type Contribution
- type Contributions
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeUserStatusInput ¶
type ChangeUserStatusInput struct { // A unique identifier for the client performing the mutation. ClientMutationId *string `json:"clientMutationId"` // The emoji to represent your status. Can either be a native Unicode emoji or an emoji name with colons, e.g., :grinning:. Emoji *string `json:"emoji"` // If set, the user status will not be shown after this date. ExpiresAt *time.Time `json:"expiresAt"` // Whether this status should indicate you are not fully available on GitHub, e.g., you are away. LimitedAvailability *bool `json:"limitedAvailability"` // A short description of your current status. Message *string `json:"message"` // The ID of the organization whose members will be allowed to see the status. If // omitted, the status will be publicly visible. OrganizationId *string `json:"organizationId"` }
Autogenerated input type of ChangeUserStatus
func (*ChangeUserStatusInput) GetClientMutationId ¶
func (v *ChangeUserStatusInput) GetClientMutationId() *string
GetClientMutationId returns ChangeUserStatusInput.ClientMutationId, and is useful for accessing the field via an interface.
func (*ChangeUserStatusInput) GetEmoji ¶
func (v *ChangeUserStatusInput) GetEmoji() *string
GetEmoji returns ChangeUserStatusInput.Emoji, and is useful for accessing the field via an interface.
func (*ChangeUserStatusInput) GetExpiresAt ¶
func (v *ChangeUserStatusInput) GetExpiresAt() *time.Time
GetExpiresAt returns ChangeUserStatusInput.ExpiresAt, and is useful for accessing the field via an interface.
func (*ChangeUserStatusInput) GetLimitedAvailability ¶
func (v *ChangeUserStatusInput) GetLimitedAvailability() *bool
GetLimitedAvailability returns ChangeUserStatusInput.LimitedAvailability, and is useful for accessing the field via an interface.
func (*ChangeUserStatusInput) GetMessage ¶
func (v *ChangeUserStatusInput) GetMessage() *string
GetMessage returns ChangeUserStatusInput.Message, and is useful for accessing the field via an interface.
func (*ChangeUserStatusInput) GetOrganizationId ¶
func (v *ChangeUserStatusInput) GetOrganizationId() *string
GetOrganizationId returns ChangeUserStatusInput.OrganizationId, and is useful for accessing the field via an interface.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ChangeUserStatus ¶
func (*Client) GetContributions ¶
func (c *Client) GetContributions(ctx context.Context, user string, from, to time.Time) (githubcontrib.ContributionsResponse, error)