diff options
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/session.go')
-rw-r--r-- | vendor/github.com/xanzy/go-gitlab/session.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/session.go b/vendor/github.com/xanzy/go-gitlab/session.go index 571483c..a5083c2 100644 --- a/vendor/github.com/xanzy/go-gitlab/session.go +++ b/vendor/github.com/xanzy/go-gitlab/session.go @@ -21,14 +21,16 @@ import "time" // SessionService handles communication with the session related methods of // the GitLab API. // -// GitLab API docs: https://docs.gitlab.com/ce/api/session.html +// GitLab API docs: +// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/session.md type SessionService struct { client *Client } // Session represents a GitLab session. // -// GitLab API docs: https://docs.gitlab.com/ce/api/session.html#session +// GitLab API docs: +// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/session.md#session type Session struct { ID int `json:"id"` Username string `json:"username"` @@ -52,7 +54,8 @@ type Session struct { // GetSessionOptions represents the available Session() options. // -// GitLab API docs: https://docs.gitlab.com/ce/api/session.html#session +// GitLab API docs: +// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/session.md#session type GetSessionOptions struct { Login *string `url:"login,omitempty" json:"login,omitempty"` Email *string `url:"email,omitempty" json:"email,omitempty"` @@ -61,7 +64,8 @@ type GetSessionOptions struct { // GetSession logs in to get private token. // -// GitLab API docs: https://docs.gitlab.com/ce/api/session.html#session +// GitLab API docs: +// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/session.md#session func (s *SessionService) GetSession(opt *GetSessionOptions, options ...OptionFunc) (*Session, *Response, error) { req, err := s.client.NewRequest("POST", "session", opt, options) if err != nil { |