activity

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRepoIsStarredByAuthenticatedUserReq

type CheckRepoIsStarredByAuthenticatedUserReq struct {
	Owner string
	Repo  string
	// contains filtered or unexported fields
}

CheckRepoIsStarredByAuthenticatedUserReq is request data for Client.CheckRepoIsStarredByAuthenticatedUser

https://developer.github.com/v3/activity/starring/#check-if-a-repository-is-starred-by-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*CheckRepoIsStarredByAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CheckRepoIsStarredByAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type CheckRepoIsStarredByAuthenticatedUserResponse

type CheckRepoIsStarredByAuthenticatedUserResponse struct {
	// contains filtered or unexported fields
}

CheckRepoIsStarredByAuthenticatedUserResponse is a response for CheckRepoIsStarredByAuthenticatedUser

https://developer.github.com/v3/activity/starring/#check-if-a-repository-is-starred-by-the-authenticated-user

func CheckRepoIsStarredByAuthenticatedUser

CheckRepoIsStarredByAuthenticatedUser performs requests for "activity/check-repo-is-starred-by-authenticated-user"

Check if a repository is starred by the authenticated user.

GET /user/starred/{owner}/{repo}

https://developer.github.com/v3/activity/starring/#check-if-a-repository-is-starred-by-the-authenticated-user

func (*CheckRepoIsStarredByAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*CheckRepoIsStarredByAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type Client

type Client []requests.Option

Client is a set of options to apply to requests

func NewClient

func NewClient(opt ...requests.Option) Client

NewClient returns a new Client

func (Client) CheckRepoIsStarredByAuthenticatedUser

CheckRepoIsStarredByAuthenticatedUser performs requests for "activity/check-repo-is-starred-by-authenticated-user"

Check if a repository is starred by the authenticated user.

GET /user/starred/{owner}/{repo}

https://developer.github.com/v3/activity/starring/#check-if-a-repository-is-starred-by-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) DeleteRepoSubscription

func (c Client) DeleteRepoSubscription(ctx context.Context, req *DeleteRepoSubscriptionReq, opt ...requests.Option) (*DeleteRepoSubscriptionResponse, error)

DeleteRepoSubscription performs requests for "activity/delete-repo-subscription"

Delete a repository subscription.

DELETE /repos/{owner}/{repo}/subscription

https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) DeleteThreadSubscription

func (c Client) DeleteThreadSubscription(ctx context.Context, req *DeleteThreadSubscriptionReq, opt ...requests.Option) (*DeleteThreadSubscriptionResponse, error)

DeleteThreadSubscription performs requests for "activity/delete-thread-subscription"

Delete a thread subscription.

DELETE /notifications/threads/{thread_id}/subscription

https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetFeeds

func (c Client) GetFeeds(ctx context.Context, req *GetFeedsReq, opt ...requests.Option) (*GetFeedsResponse, error)

GetFeeds performs requests for "activity/get-feeds"

Get feeds.

GET /feeds

https://developer.github.com/v3/activity/feeds/#get-feeds

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetRepoSubscription

func (c Client) GetRepoSubscription(ctx context.Context, req *GetRepoSubscriptionReq, opt ...requests.Option) (*GetRepoSubscriptionResponse, error)

GetRepoSubscription performs requests for "activity/get-repo-subscription"

Get a repository subscription.

GET /repos/{owner}/{repo}/subscription

https://developer.github.com/v3/activity/watching/#get-a-repository-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetThread

func (c Client) GetThread(ctx context.Context, req *GetThreadReq, opt ...requests.Option) (*GetThreadResponse, error)

GetThread performs requests for "activity/get-thread"

Get a thread.

GET /notifications/threads/{thread_id}

https://developer.github.com/v3/activity/notifications/#get-a-thread

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) GetThreadSubscriptionForAuthenticatedUser

GetThreadSubscriptionForAuthenticatedUser performs requests for "activity/get-thread-subscription-for-authenticated-user"

Get a thread subscription for the authenticated user.

GET /notifications/threads/{thread_id}/subscription

https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListEventsForAuthenticatedUser

ListEventsForAuthenticatedUser performs requests for "activity/list-events-for-authenticated-user"

List events for the authenticated user.

GET /users/{username}/events

https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListNotificationsForAuthenticatedUser

ListNotificationsForAuthenticatedUser performs requests for "activity/list-notifications-for-authenticated-user"

List notifications for the authenticated user.

GET /notifications

https://developer.github.com/v3/activity/notifications/#list-notifications-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListOrgEventsForAuthenticatedUser

ListOrgEventsForAuthenticatedUser performs requests for "activity/list-org-events-for-authenticated-user"

List organization events for the authenticated user.

GET /users/{username}/events/orgs/{org}

https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListPublicEvents

func (c Client) ListPublicEvents(ctx context.Context, req *ListPublicEventsReq, opt ...requests.Option) (*ListPublicEventsResponse, error)

ListPublicEvents performs requests for "activity/list-public-events"

List public events.

GET /events

https://developer.github.com/v3/activity/events/#list-public-events

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListPublicEventsForRepoNetwork

ListPublicEventsForRepoNetwork performs requests for "activity/list-public-events-for-repo-network"

List public events for a network of repositories.

GET /networks/{owner}/{repo}/events

https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListPublicEventsForUser

func (c Client) ListPublicEventsForUser(ctx context.Context, req *ListPublicEventsForUserReq, opt ...requests.Option) (*ListPublicEventsForUserResponse, error)

ListPublicEventsForUser performs requests for "activity/list-public-events-for-user"

List public events for a user.

GET /users/{username}/events/public

https://developer.github.com/v3/activity/events/#list-public-events-for-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListPublicOrgEvents

func (c Client) ListPublicOrgEvents(ctx context.Context, req *ListPublicOrgEventsReq, opt ...requests.Option) (*ListPublicOrgEventsResponse, error)

ListPublicOrgEvents performs requests for "activity/list-public-org-events"

List public organization events.

GET /orgs/{org}/events

https://developer.github.com/v3/activity/events/#list-public-organization-events

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListReceivedEventsForUser

func (c Client) ListReceivedEventsForUser(ctx context.Context, req *ListReceivedEventsForUserReq, opt ...requests.Option) (*ListReceivedEventsForUserResponse, error)

ListReceivedEventsForUser performs requests for "activity/list-received-events-for-user"

List events received by the authenticated user.

GET /users/{username}/received_events

https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListReceivedPublicEventsForUser

ListReceivedPublicEventsForUser performs requests for "activity/list-received-public-events-for-user"

List public events received by a user.

GET /users/{username}/received_events/public

https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListRepoEvents

func (c Client) ListRepoEvents(ctx context.Context, req *ListRepoEventsReq, opt ...requests.Option) (*ListRepoEventsResponse, error)

ListRepoEvents performs requests for "activity/list-repo-events"

List repository events.

GET /repos/{owner}/{repo}/events

https://developer.github.com/v3/activity/events/#list-repository-events

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListRepoNotificationsForAuthenticatedUser

ListRepoNotificationsForAuthenticatedUser performs requests for "activity/list-repo-notifications-for-authenticated-user"

List repository notifications for the authenticated user.

GET /repos/{owner}/{repo}/notifications

https://developer.github.com/v3/activity/notifications/#list-repository-notifications-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListReposStarredByAuthenticatedUser

ListReposStarredByAuthenticatedUser performs requests for "activity/list-repos-starred-by-authenticated-user"

List repositories starred by the authenticated user.

GET /user/starred

https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListReposStarredByUser

func (c Client) ListReposStarredByUser(ctx context.Context, req *ListReposStarredByUserReq, opt ...requests.Option) (*ListReposStarredByUserResponse, error)

ListReposStarredByUser performs requests for "activity/list-repos-starred-by-user"

List repositories starred by a user.

GET /users/{username}/starred

https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListReposWatchedByUser

func (c Client) ListReposWatchedByUser(ctx context.Context, req *ListReposWatchedByUserReq, opt ...requests.Option) (*ListReposWatchedByUserResponse, error)

ListReposWatchedByUser performs requests for "activity/list-repos-watched-by-user"

List repositories watched by a user.

GET /users/{username}/subscriptions

https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListStargazersForRepo

func (c Client) ListStargazersForRepo(ctx context.Context, req *ListStargazersForRepoReq, opt ...requests.Option) (*ListStargazersForRepoResponse, error)

ListStargazersForRepo performs requests for "activity/list-stargazers-for-repo"

List stargazers.

GET /repos/{owner}/{repo}/stargazers

https://developer.github.com/v3/activity/starring/#list-stargazers

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListWatchedReposForAuthenticatedUser

ListWatchedReposForAuthenticatedUser performs requests for "activity/list-watched-repos-for-authenticated-user"

List repositories watched by the authenticated user.

GET /user/subscriptions

https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) ListWatchersForRepo

func (c Client) ListWatchersForRepo(ctx context.Context, req *ListWatchersForRepoReq, opt ...requests.Option) (*ListWatchersForRepoResponse, error)

ListWatchersForRepo performs requests for "activity/list-watchers-for-repo"

List watchers.

GET /repos/{owner}/{repo}/subscribers

https://developer.github.com/v3/activity/watching/#list-watchers

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) MarkNotificationsAsRead

func (c Client) MarkNotificationsAsRead(ctx context.Context, req *MarkNotificationsAsReadReq, opt ...requests.Option) (*MarkNotificationsAsReadResponse, error)

MarkNotificationsAsRead performs requests for "activity/mark-notifications-as-read"

Mark notifications as read.

PUT /notifications

https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) MarkRepoNotificationsAsRead

MarkRepoNotificationsAsRead performs requests for "activity/mark-repo-notifications-as-read"

Mark repository notifications as read.

PUT /repos/{owner}/{repo}/notifications

https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) MarkThreadAsRead

func (c Client) MarkThreadAsRead(ctx context.Context, req *MarkThreadAsReadReq, opt ...requests.Option) (*MarkThreadAsReadResponse, error)

MarkThreadAsRead performs requests for "activity/mark-thread-as-read"

Mark a thread as read.

PATCH /notifications/threads/{thread_id}

https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) SetRepoSubscription

func (c Client) SetRepoSubscription(ctx context.Context, req *SetRepoSubscriptionReq, opt ...requests.Option) (*SetRepoSubscriptionResponse, error)

SetRepoSubscription performs requests for "activity/set-repo-subscription"

Set a repository subscription.

PUT /repos/{owner}/{repo}/subscription

https://developer.github.com/v3/activity/watching/#set-a-repository-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) SetThreadSubscription

func (c Client) SetThreadSubscription(ctx context.Context, req *SetThreadSubscriptionReq, opt ...requests.Option) (*SetThreadSubscriptionResponse, error)

SetThreadSubscription performs requests for "activity/set-thread-subscription"

Set a thread subscription.

PUT /notifications/threads/{thread_id}/subscription

https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) StarRepoForAuthenticatedUser

StarRepoForAuthenticatedUser performs requests for "activity/star-repo-for-authenticated-user"

Star a repository for the authenticated user.

PUT /user/starred/{owner}/{repo}

https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (Client) UnstarRepoForAuthenticatedUser

UnstarRepoForAuthenticatedUser performs requests for "activity/unstar-repo-for-authenticated-user"

Unstar a repository for the authenticated user.

DELETE /user/starred/{owner}/{repo}

https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

type DeleteRepoSubscriptionReq

type DeleteRepoSubscriptionReq struct {
	Owner string
	Repo  string
	// contains filtered or unexported fields
}

DeleteRepoSubscriptionReq is request data for Client.DeleteRepoSubscription

https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*DeleteRepoSubscriptionReq) HTTPRequest

func (r *DeleteRepoSubscriptionReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteRepoSubscriptionReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type DeleteRepoSubscriptionResponse

type DeleteRepoSubscriptionResponse struct {
	// contains filtered or unexported fields
}

DeleteRepoSubscriptionResponse is a response for DeleteRepoSubscription

https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription

func DeleteRepoSubscription

func DeleteRepoSubscription(ctx context.Context, req *DeleteRepoSubscriptionReq, opt ...requests.Option) (*DeleteRepoSubscriptionResponse, error)

DeleteRepoSubscription performs requests for "activity/delete-repo-subscription"

Delete a repository subscription.

DELETE /repos/{owner}/{repo}/subscription

https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription

func (*DeleteRepoSubscriptionResponse) HTTPResponse

func (r *DeleteRepoSubscriptionResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*DeleteRepoSubscriptionResponse) ReadResponse

func (r *DeleteRepoSubscriptionResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type DeleteThreadSubscriptionReq

type DeleteThreadSubscriptionReq struct {

	// thread_id parameter
	ThreadId int64
	// contains filtered or unexported fields
}

DeleteThreadSubscriptionReq is request data for Client.DeleteThreadSubscription

https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*DeleteThreadSubscriptionReq) HTTPRequest

func (r *DeleteThreadSubscriptionReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteThreadSubscriptionReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type DeleteThreadSubscriptionResponse

type DeleteThreadSubscriptionResponse struct {
	// contains filtered or unexported fields
}

DeleteThreadSubscriptionResponse is a response for DeleteThreadSubscription

https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription

func DeleteThreadSubscription

DeleteThreadSubscription performs requests for "activity/delete-thread-subscription"

Delete a thread subscription.

DELETE /notifications/threads/{thread_id}/subscription

https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription

func (*DeleteThreadSubscriptionResponse) HTTPResponse

func (r *DeleteThreadSubscriptionResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*DeleteThreadSubscriptionResponse) ReadResponse

func (r *DeleteThreadSubscriptionResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetFeedsReq

type GetFeedsReq struct {
	// contains filtered or unexported fields
}

GetFeedsReq is request data for Client.GetFeeds

https://developer.github.com/v3/activity/feeds/#get-feeds

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetFeedsReq) HTTPRequest

func (r *GetFeedsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetFeedsReq) Rel

func (r *GetFeedsReq) Rel(link string, resp *GetFeedsResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetFeedsResponse

type GetFeedsResponse struct {
	Data components.Feed
	// contains filtered or unexported fields
}

GetFeedsResponse is a response for GetFeeds

https://developer.github.com/v3/activity/feeds/#get-feeds

func GetFeeds

func GetFeeds(ctx context.Context, req *GetFeedsReq, opt ...requests.Option) (*GetFeedsResponse, error)

GetFeeds performs requests for "activity/get-feeds"

Get feeds.

GET /feeds

https://developer.github.com/v3/activity/feeds/#get-feeds

func (*GetFeedsResponse) HTTPResponse

func (r *GetFeedsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetFeedsResponse) ReadResponse

func (r *GetFeedsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetRepoSubscriptionReq

type GetRepoSubscriptionReq struct {
	Owner string
	Repo  string
	// contains filtered or unexported fields
}

GetRepoSubscriptionReq is request data for Client.GetRepoSubscription

https://developer.github.com/v3/activity/watching/#get-a-repository-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetRepoSubscriptionReq) HTTPRequest

func (r *GetRepoSubscriptionReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetRepoSubscriptionReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetRepoSubscriptionResponse

type GetRepoSubscriptionResponse struct {
	Data components.RepositorySubscription
	// contains filtered or unexported fields
}

GetRepoSubscriptionResponse is a response for GetRepoSubscription

https://developer.github.com/v3/activity/watching/#get-a-repository-subscription

func GetRepoSubscription

func GetRepoSubscription(ctx context.Context, req *GetRepoSubscriptionReq, opt ...requests.Option) (*GetRepoSubscriptionResponse, error)

GetRepoSubscription performs requests for "activity/get-repo-subscription"

Get a repository subscription.

GET /repos/{owner}/{repo}/subscription

https://developer.github.com/v3/activity/watching/#get-a-repository-subscription

func (*GetRepoSubscriptionResponse) HTTPResponse

func (r *GetRepoSubscriptionResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetRepoSubscriptionResponse) ReadResponse

func (r *GetRepoSubscriptionResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetThreadReq

type GetThreadReq struct {

	// thread_id parameter
	ThreadId int64
	// contains filtered or unexported fields
}

GetThreadReq is request data for Client.GetThread

https://developer.github.com/v3/activity/notifications/#get-a-thread

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetThreadReq) HTTPRequest

func (r *GetThreadReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetThreadReq) Rel

func (r *GetThreadReq) Rel(link string, resp *GetThreadResponse) bool

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetThreadResponse

type GetThreadResponse struct {
	Data components.Thread
	// contains filtered or unexported fields
}

GetThreadResponse is a response for GetThread

https://developer.github.com/v3/activity/notifications/#get-a-thread

func GetThread

func GetThread(ctx context.Context, req *GetThreadReq, opt ...requests.Option) (*GetThreadResponse, error)

GetThread performs requests for "activity/get-thread"

Get a thread.

GET /notifications/threads/{thread_id}

https://developer.github.com/v3/activity/notifications/#get-a-thread

func (*GetThreadResponse) HTTPResponse

func (r *GetThreadResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*GetThreadResponse) ReadResponse

func (r *GetThreadResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type GetThreadSubscriptionForAuthenticatedUserReq

type GetThreadSubscriptionForAuthenticatedUserReq struct {

	// thread_id parameter
	ThreadId int64
	// contains filtered or unexported fields
}

GetThreadSubscriptionForAuthenticatedUserReq is request data for Client.GetThreadSubscriptionForAuthenticatedUser

https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*GetThreadSubscriptionForAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetThreadSubscriptionForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type GetThreadSubscriptionForAuthenticatedUserResponse

type GetThreadSubscriptionForAuthenticatedUserResponse struct {
	Data components.ThreadSubscription
	// contains filtered or unexported fields
}

GetThreadSubscriptionForAuthenticatedUserResponse is a response for GetThreadSubscriptionForAuthenticatedUser

https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription-for-the-authenticated-user

func GetThreadSubscriptionForAuthenticatedUser

GetThreadSubscriptionForAuthenticatedUser performs requests for "activity/get-thread-subscription-for-authenticated-user"

Get a thread subscription for the authenticated user.

GET /notifications/threads/{thread_id}/subscription

https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription-for-the-authenticated-user

func (*GetThreadSubscriptionForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*GetThreadSubscriptionForAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListEventsForAuthenticatedUserReq

type ListEventsForAuthenticatedUserReq struct {
	Username string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListEventsForAuthenticatedUserReq is request data for Client.ListEventsForAuthenticatedUser

https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListEventsForAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListEventsForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListEventsForAuthenticatedUserResponse

type ListEventsForAuthenticatedUserResponse struct {
	Data []components.Event
	// contains filtered or unexported fields
}

ListEventsForAuthenticatedUserResponse is a response for ListEventsForAuthenticatedUser

https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user

func ListEventsForAuthenticatedUser

ListEventsForAuthenticatedUser performs requests for "activity/list-events-for-authenticated-user"

List events for the authenticated user.

GET /users/{username}/events

https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user

func (*ListEventsForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListEventsForAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListNotificationsForAuthenticatedUserReq

type ListNotificationsForAuthenticatedUserReq struct {

	// If `true`, show notifications marked as read.
	All *bool

	/*
		If `true`, only shows notifications in which the user is directly participating
		or mentioned.
	*/
	Participating *bool

	/*
		Only show notifications updated after the given time. This is a timestamp in
		[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format:
		`YYYY-MM-DDTHH:MM:SSZ`.
	*/
	Since *string

	/*
		Only show notifications updated before the given time. This is a timestamp in
		[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format:
		`YYYY-MM-DDTHH:MM:SSZ`.
	*/
	Before *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListNotificationsForAuthenticatedUserReq is request data for Client.ListNotificationsForAuthenticatedUser

https://developer.github.com/v3/activity/notifications/#list-notifications-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListNotificationsForAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListNotificationsForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListNotificationsForAuthenticatedUserResponse

type ListNotificationsForAuthenticatedUserResponse struct {
	Data []components.Thread
	// contains filtered or unexported fields
}

ListNotificationsForAuthenticatedUserResponse is a response for ListNotificationsForAuthenticatedUser

https://developer.github.com/v3/activity/notifications/#list-notifications-for-the-authenticated-user

func ListNotificationsForAuthenticatedUser

ListNotificationsForAuthenticatedUser performs requests for "activity/list-notifications-for-authenticated-user"

List notifications for the authenticated user.

GET /notifications

https://developer.github.com/v3/activity/notifications/#list-notifications-for-the-authenticated-user

func (*ListNotificationsForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListNotificationsForAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListOrgEventsForAuthenticatedUserReq

type ListOrgEventsForAuthenticatedUserReq struct {
	Username string
	Org      string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListOrgEventsForAuthenticatedUserReq is request data for Client.ListOrgEventsForAuthenticatedUser

https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListOrgEventsForAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListOrgEventsForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListOrgEventsForAuthenticatedUserResponse

type ListOrgEventsForAuthenticatedUserResponse struct {
	Data []components.Event
	// contains filtered or unexported fields
}

ListOrgEventsForAuthenticatedUserResponse is a response for ListOrgEventsForAuthenticatedUser

https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user

func ListOrgEventsForAuthenticatedUser

ListOrgEventsForAuthenticatedUser performs requests for "activity/list-org-events-for-authenticated-user"

List organization events for the authenticated user.

GET /users/{username}/events/orgs/{org}

https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user

func (*ListOrgEventsForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListOrgEventsForAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListPublicEventsForRepoNetworkReq

type ListPublicEventsForRepoNetworkReq struct {
	Owner string
	Repo  string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListPublicEventsForRepoNetworkReq is request data for Client.ListPublicEventsForRepoNetwork

https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListPublicEventsForRepoNetworkReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListPublicEventsForRepoNetworkReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListPublicEventsForRepoNetworkResponse

type ListPublicEventsForRepoNetworkResponse struct {
	Data []components.Event
	// contains filtered or unexported fields
}

ListPublicEventsForRepoNetworkResponse is a response for ListPublicEventsForRepoNetwork

https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories

func ListPublicEventsForRepoNetwork

ListPublicEventsForRepoNetwork performs requests for "activity/list-public-events-for-repo-network"

List public events for a network of repositories.

GET /networks/{owner}/{repo}/events

https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories

func (*ListPublicEventsForRepoNetworkResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListPublicEventsForRepoNetworkResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListPublicEventsForUserReq

type ListPublicEventsForUserReq struct {
	Username string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListPublicEventsForUserReq is request data for Client.ListPublicEventsForUser

https://developer.github.com/v3/activity/events/#list-public-events-for-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListPublicEventsForUserReq) HTTPRequest

func (r *ListPublicEventsForUserReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListPublicEventsForUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListPublicEventsForUserResponse

type ListPublicEventsForUserResponse struct {
	Data []components.Event
	// contains filtered or unexported fields
}

ListPublicEventsForUserResponse is a response for ListPublicEventsForUser

https://developer.github.com/v3/activity/events/#list-public-events-for-a-user

func ListPublicEventsForUser

func ListPublicEventsForUser(ctx context.Context, req *ListPublicEventsForUserReq, opt ...requests.Option) (*ListPublicEventsForUserResponse, error)

ListPublicEventsForUser performs requests for "activity/list-public-events-for-user"

List public events for a user.

GET /users/{username}/events/public

https://developer.github.com/v3/activity/events/#list-public-events-for-a-user

func (*ListPublicEventsForUserResponse) HTTPResponse

func (r *ListPublicEventsForUserResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListPublicEventsForUserResponse) ReadResponse

func (r *ListPublicEventsForUserResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListPublicEventsReq

type ListPublicEventsReq struct {

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListPublicEventsReq is request data for Client.ListPublicEvents

https://developer.github.com/v3/activity/events/#list-public-events

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListPublicEventsReq) HTTPRequest

func (r *ListPublicEventsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListPublicEventsReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListPublicEventsResponse

type ListPublicEventsResponse struct {
	Data []components.Event
	// contains filtered or unexported fields
}

ListPublicEventsResponse is a response for ListPublicEvents

https://developer.github.com/v3/activity/events/#list-public-events

func ListPublicEvents

func ListPublicEvents(ctx context.Context, req *ListPublicEventsReq, opt ...requests.Option) (*ListPublicEventsResponse, error)

ListPublicEvents performs requests for "activity/list-public-events"

List public events.

GET /events

https://developer.github.com/v3/activity/events/#list-public-events

func (*ListPublicEventsResponse) HTTPResponse

func (r *ListPublicEventsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListPublicEventsResponse) ReadResponse

func (r *ListPublicEventsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListPublicOrgEventsReq

type ListPublicOrgEventsReq struct {
	Org string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListPublicOrgEventsReq is request data for Client.ListPublicOrgEvents

https://developer.github.com/v3/activity/events/#list-public-organization-events

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListPublicOrgEventsReq) HTTPRequest

func (r *ListPublicOrgEventsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListPublicOrgEventsReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListPublicOrgEventsResponse

type ListPublicOrgEventsResponse struct {
	Data []components.Event
	// contains filtered or unexported fields
}

ListPublicOrgEventsResponse is a response for ListPublicOrgEvents

https://developer.github.com/v3/activity/events/#list-public-organization-events

func ListPublicOrgEvents

func ListPublicOrgEvents(ctx context.Context, req *ListPublicOrgEventsReq, opt ...requests.Option) (*ListPublicOrgEventsResponse, error)

ListPublicOrgEvents performs requests for "activity/list-public-org-events"

List public organization events.

GET /orgs/{org}/events

https://developer.github.com/v3/activity/events/#list-public-organization-events

func (*ListPublicOrgEventsResponse) HTTPResponse

func (r *ListPublicOrgEventsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListPublicOrgEventsResponse) ReadResponse

func (r *ListPublicOrgEventsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListReceivedEventsForUserReq

type ListReceivedEventsForUserReq struct {
	Username string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListReceivedEventsForUserReq is request data for Client.ListReceivedEventsForUser

https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListReceivedEventsForUserReq) HTTPRequest

func (r *ListReceivedEventsForUserReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListReceivedEventsForUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListReceivedEventsForUserResponse

type ListReceivedEventsForUserResponse struct {
	Data []components.Event
	// contains filtered or unexported fields
}

ListReceivedEventsForUserResponse is a response for ListReceivedEventsForUser

https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user

func ListReceivedEventsForUser

ListReceivedEventsForUser performs requests for "activity/list-received-events-for-user"

List events received by the authenticated user.

GET /users/{username}/received_events

https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user

func (*ListReceivedEventsForUserResponse) HTTPResponse

func (r *ListReceivedEventsForUserResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListReceivedEventsForUserResponse) ReadResponse

func (r *ListReceivedEventsForUserResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListReceivedPublicEventsForUserReq

type ListReceivedPublicEventsForUserReq struct {
	Username string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListReceivedPublicEventsForUserReq is request data for Client.ListReceivedPublicEventsForUser

https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListReceivedPublicEventsForUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListReceivedPublicEventsForUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListReceivedPublicEventsForUserResponse

type ListReceivedPublicEventsForUserResponse struct {
	Data []components.Event
	// contains filtered or unexported fields
}

ListReceivedPublicEventsForUserResponse is a response for ListReceivedPublicEventsForUser

https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user

func ListReceivedPublicEventsForUser

ListReceivedPublicEventsForUser performs requests for "activity/list-received-public-events-for-user"

List public events received by a user.

GET /users/{username}/received_events/public

https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user

func (*ListReceivedPublicEventsForUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListReceivedPublicEventsForUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListRepoEventsReq

type ListRepoEventsReq struct {
	Owner string
	Repo  string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListRepoEventsReq is request data for Client.ListRepoEvents

https://developer.github.com/v3/activity/events/#list-repository-events

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListRepoEventsReq) HTTPRequest

func (r *ListRepoEventsReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListRepoEventsReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListRepoEventsResponse

type ListRepoEventsResponse struct {
	Data []components.Event
	// contains filtered or unexported fields
}

ListRepoEventsResponse is a response for ListRepoEvents

https://developer.github.com/v3/activity/events/#list-repository-events

func ListRepoEvents

func ListRepoEvents(ctx context.Context, req *ListRepoEventsReq, opt ...requests.Option) (*ListRepoEventsResponse, error)

ListRepoEvents performs requests for "activity/list-repo-events"

List repository events.

GET /repos/{owner}/{repo}/events

https://developer.github.com/v3/activity/events/#list-repository-events

func (*ListRepoEventsResponse) HTTPResponse

func (r *ListRepoEventsResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListRepoEventsResponse) ReadResponse

func (r *ListRepoEventsResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListRepoNotificationsForAuthenticatedUserReq

type ListRepoNotificationsForAuthenticatedUserReq struct {
	Owner string
	Repo  string

	// If `true`, show notifications marked as read.
	All *bool

	/*
		If `true`, only shows notifications in which the user is directly participating
		or mentioned.
	*/
	Participating *bool

	/*
		Only show notifications updated after the given time. This is a timestamp in
		[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format:
		`YYYY-MM-DDTHH:MM:SSZ`.
	*/
	Since *string

	/*
		Only show notifications updated before the given time. This is a timestamp in
		[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format:
		`YYYY-MM-DDTHH:MM:SSZ`.
	*/
	Before *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListRepoNotificationsForAuthenticatedUserReq is request data for Client.ListRepoNotificationsForAuthenticatedUser

https://developer.github.com/v3/activity/notifications/#list-repository-notifications-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListRepoNotificationsForAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListRepoNotificationsForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListRepoNotificationsForAuthenticatedUserResponse

type ListRepoNotificationsForAuthenticatedUserResponse struct {
	Data []components.Thread
	// contains filtered or unexported fields
}

ListRepoNotificationsForAuthenticatedUserResponse is a response for ListRepoNotificationsForAuthenticatedUser

https://developer.github.com/v3/activity/notifications/#list-repository-notifications-for-the-authenticated-user

func ListRepoNotificationsForAuthenticatedUser

ListRepoNotificationsForAuthenticatedUser performs requests for "activity/list-repo-notifications-for-authenticated-user"

List repository notifications for the authenticated user.

GET /repos/{owner}/{repo}/notifications

https://developer.github.com/v3/activity/notifications/#list-repository-notifications-for-the-authenticated-user

func (*ListRepoNotificationsForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListRepoNotificationsForAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListReposStarredByAuthenticatedUserReq

type ListReposStarredByAuthenticatedUserReq struct {

	/*
		One of `created` (when the repository was starred) or `updated` (when it was
		last pushed to).
	*/
	Sort *string

	// One of `asc` (ascending) or `desc` (descending).
	Direction *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListReposStarredByAuthenticatedUserReq is request data for Client.ListReposStarredByAuthenticatedUser

https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListReposStarredByAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListReposStarredByAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListReposStarredByAuthenticatedUserResponse

type ListReposStarredByAuthenticatedUserResponse struct {
	Data []components.StarredRepository
	// contains filtered or unexported fields
}

ListReposStarredByAuthenticatedUserResponse is a response for ListReposStarredByAuthenticatedUser

https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-the-authenticated-user

func ListReposStarredByAuthenticatedUser

ListReposStarredByAuthenticatedUser performs requests for "activity/list-repos-starred-by-authenticated-user"

List repositories starred by the authenticated user.

GET /user/starred

https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-the-authenticated-user

func (*ListReposStarredByAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListReposStarredByAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListReposStarredByUserReq

type ListReposStarredByUserReq struct {
	Username string

	/*
		One of `created` (when the repository was starred) or `updated` (when it was
		last pushed to).
	*/
	Sort *string

	// One of `asc` (ascending) or `desc` (descending).
	Direction *string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListReposStarredByUserReq is request data for Client.ListReposStarredByUser

https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListReposStarredByUserReq) HTTPRequest

func (r *ListReposStarredByUserReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListReposStarredByUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListReposStarredByUserResponse

type ListReposStarredByUserResponse struct {
	Data []components.StarredRepository
	// contains filtered or unexported fields
}

ListReposStarredByUserResponse is a response for ListReposStarredByUser

https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user

func ListReposStarredByUser

func ListReposStarredByUser(ctx context.Context, req *ListReposStarredByUserReq, opt ...requests.Option) (*ListReposStarredByUserResponse, error)

ListReposStarredByUser performs requests for "activity/list-repos-starred-by-user"

List repositories starred by a user.

GET /users/{username}/starred

https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user

func (*ListReposStarredByUserResponse) HTTPResponse

func (r *ListReposStarredByUserResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListReposStarredByUserResponse) ReadResponse

func (r *ListReposStarredByUserResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListReposWatchedByUserReq

type ListReposWatchedByUserReq struct {
	Username string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListReposWatchedByUserReq is request data for Client.ListReposWatchedByUser

https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListReposWatchedByUserReq) HTTPRequest

func (r *ListReposWatchedByUserReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListReposWatchedByUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListReposWatchedByUserResponse

type ListReposWatchedByUserResponse struct {
	Data []components.MinimalRepository
	// contains filtered or unexported fields
}

ListReposWatchedByUserResponse is a response for ListReposWatchedByUser

https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user

func ListReposWatchedByUser

func ListReposWatchedByUser(ctx context.Context, req *ListReposWatchedByUserReq, opt ...requests.Option) (*ListReposWatchedByUserResponse, error)

ListReposWatchedByUser performs requests for "activity/list-repos-watched-by-user"

List repositories watched by a user.

GET /users/{username}/subscriptions

https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user

func (*ListReposWatchedByUserResponse) HTTPResponse

func (r *ListReposWatchedByUserResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListReposWatchedByUserResponse) ReadResponse

func (r *ListReposWatchedByUserResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListStargazersForRepoReq

type ListStargazersForRepoReq struct {
	Owner string
	Repo  string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListStargazersForRepoReq is request data for Client.ListStargazersForRepo

https://developer.github.com/v3/activity/starring/#list-stargazers

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListStargazersForRepoReq) HTTPRequest

func (r *ListStargazersForRepoReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListStargazersForRepoReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListStargazersForRepoResponse

type ListStargazersForRepoResponse struct {
	Data []components.Stargazer
	// contains filtered or unexported fields
}

ListStargazersForRepoResponse is a response for ListStargazersForRepo

https://developer.github.com/v3/activity/starring/#list-stargazers

func ListStargazersForRepo

func ListStargazersForRepo(ctx context.Context, req *ListStargazersForRepoReq, opt ...requests.Option) (*ListStargazersForRepoResponse, error)

ListStargazersForRepo performs requests for "activity/list-stargazers-for-repo"

List stargazers.

GET /repos/{owner}/{repo}/stargazers

https://developer.github.com/v3/activity/starring/#list-stargazers

func (*ListStargazersForRepoResponse) HTTPResponse

func (r *ListStargazersForRepoResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListStargazersForRepoResponse) ReadResponse

func (r *ListStargazersForRepoResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListWatchedReposForAuthenticatedUserReq

type ListWatchedReposForAuthenticatedUserReq struct {

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListWatchedReposForAuthenticatedUserReq is request data for Client.ListWatchedReposForAuthenticatedUser

https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListWatchedReposForAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListWatchedReposForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListWatchedReposForAuthenticatedUserResponse

type ListWatchedReposForAuthenticatedUserResponse struct {
	Data []components.MinimalRepository
	// contains filtered or unexported fields
}

ListWatchedReposForAuthenticatedUserResponse is a response for ListWatchedReposForAuthenticatedUser

https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-the-authenticated-user

func ListWatchedReposForAuthenticatedUser

ListWatchedReposForAuthenticatedUser performs requests for "activity/list-watched-repos-for-authenticated-user"

List repositories watched by the authenticated user.

GET /user/subscriptions

https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-the-authenticated-user

func (*ListWatchedReposForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*ListWatchedReposForAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type ListWatchersForRepoReq

type ListWatchersForRepoReq struct {
	Owner string
	Repo  string

	// Results per page (max 100)
	PerPage *int64

	// Page number of the results to fetch.
	Page *int64
	// contains filtered or unexported fields
}

ListWatchersForRepoReq is request data for Client.ListWatchersForRepo

https://developer.github.com/v3/activity/watching/#list-watchers

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*ListWatchersForRepoReq) HTTPRequest

func (r *ListWatchersForRepoReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListWatchersForRepoReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type ListWatchersForRepoResponse

type ListWatchersForRepoResponse struct {
	Data []components.SimpleUser
	// contains filtered or unexported fields
}

ListWatchersForRepoResponse is a response for ListWatchersForRepo

https://developer.github.com/v3/activity/watching/#list-watchers

func ListWatchersForRepo

func ListWatchersForRepo(ctx context.Context, req *ListWatchersForRepoReq, opt ...requests.Option) (*ListWatchersForRepoResponse, error)

ListWatchersForRepo performs requests for "activity/list-watchers-for-repo"

List watchers.

GET /repos/{owner}/{repo}/subscribers

https://developer.github.com/v3/activity/watching/#list-watchers

func (*ListWatchersForRepoResponse) HTTPResponse

func (r *ListWatchersForRepoResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*ListWatchersForRepoResponse) ReadResponse

func (r *ListWatchersForRepoResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type MarkNotificationsAsReadReq

type MarkNotificationsAsReadReq struct {
	RequestBody MarkNotificationsAsReadReqBody
	// contains filtered or unexported fields
}

MarkNotificationsAsReadReq is request data for Client.MarkNotificationsAsRead

https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*MarkNotificationsAsReadReq) HTTPRequest

func (r *MarkNotificationsAsReadReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*MarkNotificationsAsReadReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type MarkNotificationsAsReadReqBody

type MarkNotificationsAsReadReqBody struct {

	// Describes the last point that notifications were checked.
	LastReadAt *string `json:"last_read_at,omitempty"`

	// Whether the notification has been read.
	Read *bool `json:"read,omitempty"`
}

MarkNotificationsAsReadReqBody is a request body for activity/mark-notifications-as-read

https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read

type MarkNotificationsAsReadResponse

type MarkNotificationsAsReadResponse struct {
	Data MarkNotificationsAsReadResponseBody
	// contains filtered or unexported fields
}

MarkNotificationsAsReadResponse is a response for MarkNotificationsAsRead

https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read

func MarkNotificationsAsRead

func MarkNotificationsAsRead(ctx context.Context, req *MarkNotificationsAsReadReq, opt ...requests.Option) (*MarkNotificationsAsReadResponse, error)

MarkNotificationsAsRead performs requests for "activity/mark-notifications-as-read"

Mark notifications as read.

PUT /notifications

https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read

func (*MarkNotificationsAsReadResponse) HTTPResponse

func (r *MarkNotificationsAsReadResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*MarkNotificationsAsReadResponse) ReadResponse

func (r *MarkNotificationsAsReadResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type MarkNotificationsAsReadResponseBody

type MarkNotificationsAsReadResponseBody struct {
	Message string `json:"message,omitempty"`
}

MarkNotificationsAsReadResponseBody is a response body for MarkNotificationsAsRead

https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read

type MarkRepoNotificationsAsReadReq

type MarkRepoNotificationsAsReadReq struct {
	Owner       string
	Repo        string
	RequestBody MarkRepoNotificationsAsReadReqBody
	// contains filtered or unexported fields
}

MarkRepoNotificationsAsReadReq is request data for Client.MarkRepoNotificationsAsRead

https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*MarkRepoNotificationsAsReadReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*MarkRepoNotificationsAsReadReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type MarkRepoNotificationsAsReadReqBody

type MarkRepoNotificationsAsReadReqBody struct {

	/*
		Describes the last point that notifications were checked. Anything updated since
		this time will not be marked as read. If you omit this parameter, all
		notifications are marked as read. This is a timestamp in [ISO
		8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
		Default: The current timestamp.
	*/
	LastReadAt *string `json:"last_read_at,omitempty"`
}

MarkRepoNotificationsAsReadReqBody is a request body for activity/mark-repo-notifications-as-read

https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read

type MarkRepoNotificationsAsReadResponse

type MarkRepoNotificationsAsReadResponse struct {
	// contains filtered or unexported fields
}

MarkRepoNotificationsAsReadResponse is a response for MarkRepoNotificationsAsRead

https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read

func MarkRepoNotificationsAsRead

MarkRepoNotificationsAsRead performs requests for "activity/mark-repo-notifications-as-read"

Mark repository notifications as read.

PUT /repos/{owner}/{repo}/notifications

https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read

func (*MarkRepoNotificationsAsReadResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*MarkRepoNotificationsAsReadResponse) ReadResponse

func (r *MarkRepoNotificationsAsReadResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type MarkThreadAsReadReq

type MarkThreadAsReadReq struct {

	// thread_id parameter
	ThreadId int64
	// contains filtered or unexported fields
}

MarkThreadAsReadReq is request data for Client.MarkThreadAsRead

https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*MarkThreadAsReadReq) HTTPRequest

func (r *MarkThreadAsReadReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*MarkThreadAsReadReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type MarkThreadAsReadResponse

type MarkThreadAsReadResponse struct {
	// contains filtered or unexported fields
}

MarkThreadAsReadResponse is a response for MarkThreadAsRead

https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read

func MarkThreadAsRead

func MarkThreadAsRead(ctx context.Context, req *MarkThreadAsReadReq, opt ...requests.Option) (*MarkThreadAsReadResponse, error)

MarkThreadAsRead performs requests for "activity/mark-thread-as-read"

Mark a thread as read.

PATCH /notifications/threads/{thread_id}

https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read

func (*MarkThreadAsReadResponse) HTTPResponse

func (r *MarkThreadAsReadResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*MarkThreadAsReadResponse) ReadResponse

func (r *MarkThreadAsReadResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type SetRepoSubscriptionReq

type SetRepoSubscriptionReq struct {
	Owner       string
	Repo        string
	RequestBody SetRepoSubscriptionReqBody
	// contains filtered or unexported fields
}

SetRepoSubscriptionReq is request data for Client.SetRepoSubscription

https://developer.github.com/v3/activity/watching/#set-a-repository-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*SetRepoSubscriptionReq) HTTPRequest

func (r *SetRepoSubscriptionReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*SetRepoSubscriptionReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type SetRepoSubscriptionReqBody

type SetRepoSubscriptionReqBody struct {

	// Determines if all notifications should be blocked from this repository.
	Ignored *bool `json:"ignored,omitempty"`

	// Determines if notifications should be received from this repository.
	Subscribed *bool `json:"subscribed,omitempty"`
}

SetRepoSubscriptionReqBody is a request body for activity/set-repo-subscription

https://developer.github.com/v3/activity/watching/#set-a-repository-subscription

type SetRepoSubscriptionResponse

type SetRepoSubscriptionResponse struct {
	Data components.RepositorySubscription
	// contains filtered or unexported fields
}

SetRepoSubscriptionResponse is a response for SetRepoSubscription

https://developer.github.com/v3/activity/watching/#set-a-repository-subscription

func SetRepoSubscription

func SetRepoSubscription(ctx context.Context, req *SetRepoSubscriptionReq, opt ...requests.Option) (*SetRepoSubscriptionResponse, error)

SetRepoSubscription performs requests for "activity/set-repo-subscription"

Set a repository subscription.

PUT /repos/{owner}/{repo}/subscription

https://developer.github.com/v3/activity/watching/#set-a-repository-subscription

func (*SetRepoSubscriptionResponse) HTTPResponse

func (r *SetRepoSubscriptionResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*SetRepoSubscriptionResponse) ReadResponse

func (r *SetRepoSubscriptionResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type SetThreadSubscriptionReq

type SetThreadSubscriptionReq struct {

	// thread_id parameter
	ThreadId    int64
	RequestBody SetThreadSubscriptionReqBody
	// contains filtered or unexported fields
}

SetThreadSubscriptionReq is request data for Client.SetThreadSubscription

https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*SetThreadSubscriptionReq) HTTPRequest

func (r *SetThreadSubscriptionReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*SetThreadSubscriptionReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type SetThreadSubscriptionReqBody

type SetThreadSubscriptionReqBody struct {

	// Whether to block all notifications from a thread.
	Ignored *bool `json:"ignored,omitempty"`
}

SetThreadSubscriptionReqBody is a request body for activity/set-thread-subscription

https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription

type SetThreadSubscriptionResponse

type SetThreadSubscriptionResponse struct {
	Data components.ThreadSubscription
	// contains filtered or unexported fields
}

SetThreadSubscriptionResponse is a response for SetThreadSubscription

https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription

func SetThreadSubscription

func SetThreadSubscription(ctx context.Context, req *SetThreadSubscriptionReq, opt ...requests.Option) (*SetThreadSubscriptionResponse, error)

SetThreadSubscription performs requests for "activity/set-thread-subscription"

Set a thread subscription.

PUT /notifications/threads/{thread_id}/subscription

https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription

func (*SetThreadSubscriptionResponse) HTTPResponse

func (r *SetThreadSubscriptionResponse) HTTPResponse() *http.Response

HTTPResponse returns the *http.Response

func (*SetThreadSubscriptionResponse) ReadResponse

func (r *SetThreadSubscriptionResponse) ReadResponse(resp *http.Response) error

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type StarRepoForAuthenticatedUserReq

type StarRepoForAuthenticatedUserReq struct {
	Owner string
	Repo  string
	// contains filtered or unexported fields
}

StarRepoForAuthenticatedUserReq is request data for Client.StarRepoForAuthenticatedUser

https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*StarRepoForAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*StarRepoForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type StarRepoForAuthenticatedUserResponse

type StarRepoForAuthenticatedUserResponse struct {
	// contains filtered or unexported fields
}

StarRepoForAuthenticatedUserResponse is a response for StarRepoForAuthenticatedUser

https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user

func StarRepoForAuthenticatedUser

StarRepoForAuthenticatedUser performs requests for "activity/star-repo-for-authenticated-user"

Star a repository for the authenticated user.

PUT /user/starred/{owner}/{repo}

https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user

func (*StarRepoForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*StarRepoForAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type UnstarRepoForAuthenticatedUserReq

type UnstarRepoForAuthenticatedUserReq struct {
	Owner string
	Repo  string
	// contains filtered or unexported fields
}

UnstarRepoForAuthenticatedUserReq is request data for Client.UnstarRepoForAuthenticatedUser

https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user

Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.

func (*UnstarRepoForAuthenticatedUserReq) HTTPRequest

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UnstarRepoForAuthenticatedUserReq) Rel

Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.

type UnstarRepoForAuthenticatedUserResponse

type UnstarRepoForAuthenticatedUserResponse struct {
	// contains filtered or unexported fields
}

UnstarRepoForAuthenticatedUserResponse is a response for UnstarRepoForAuthenticatedUser

https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user

func UnstarRepoForAuthenticatedUser

UnstarRepoForAuthenticatedUser performs requests for "activity/unstar-repo-for-authenticated-user"

Unstar a repository for the authenticated user.

DELETE /user/starred/{owner}/{repo}

https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user

func (*UnstarRepoForAuthenticatedUserResponse) HTTPResponse

HTTPResponse returns the *http.Response

func (*UnstarRepoForAuthenticatedUserResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

Jump to

Keyboard shortcuts

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