Documentation ¶
Overview ¶
Package auth is a generated GoMock package.
Index ¶
- type IOAuth
- type MockIOAuth
- func (m *MockIOAuth) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
- func (m *MockIOAuth) Client(ctx context.Context, t *oauth2.Token) *http.Client
- func (m *MockIOAuth) EXPECT() *MockIOAuthMockRecorder
- func (m *MockIOAuth) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error)
- type MockIOAuthMockRecorder
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIOAuth ¶
type MockIOAuth struct {
// contains filtered or unexported fields
}
MockIOAuth is a mock of IOAuth interface.
func NewMockIOAuth ¶
func NewMockIOAuth(ctrl *gomock.Controller) *MockIOAuth
NewMockIOAuth creates a new mock instance.
func (*MockIOAuth) AuthCodeURL ¶
func (m *MockIOAuth) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string
AuthCodeURL mocks base method.
func (*MockIOAuth) EXPECT ¶
func (m *MockIOAuth) EXPECT() *MockIOAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIOAuthMockRecorder ¶
type MockIOAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockIOAuthMockRecorder is the mock recorder for MockIOAuth.
func (*MockIOAuthMockRecorder) AuthCodeURL ¶
func (mr *MockIOAuthMockRecorder) AuthCodeURL(state interface{}, opts ...interface{}) *gomock.Call
AuthCodeURL indicates an expected call of AuthCodeURL.
func (*MockIOAuthMockRecorder) Client ¶
func (mr *MockIOAuthMockRecorder) Client(ctx, t interface{}) *gomock.Call
Client indicates an expected call of Client.
func (*MockIOAuthMockRecorder) Exchange ¶
func (mr *MockIOAuthMockRecorder) Exchange(ctx, code interface{}, opts ...interface{}) *gomock.Call
Exchange indicates an expected call of Exchange.
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) GetGoogleUserInfo ¶
GetGoogleUserInfo get user info after authenticate
Click to show internal directories.
Click to hide internal directories.