Documentation
¶
Index ¶
- type IDParser
- type IDParser_Expecter
- type IDParser_Parse_Call
- type Identifier
- type Identifier_Expecter
- type Identifier_String_Call
- type NewOpts
- type NewOpts_Execute_Call
- type NewOpts_Expecter
- type OAuth2User
- type OAuth2User_Expecter
- type OAuth2User_Request_Call
- func (_c *OAuth2User_Request_Call) Return(_a0 *http.Response, _a1 error) *OAuth2User_Request_Call
- func (_c *OAuth2User_Request_Call) Run(run func(ctx context.Context, accessToken string)) *OAuth2User_Request_Call
- func (_c *OAuth2User_Request_Call) RunAndReturn(run func(context.Context, string) (*http.Response, error)) *OAuth2User_Request_Call
- type OAuth2User_String_Call
- type OAuth2User_Unmarshal_Call
- type Storer
- func (_m *Storer) CreateSession(ctx context.Context, req gosesh.CreateSessionRequest) (*gosesh.Session, error)
- func (_m *Storer) DeleteSession(ctx context.Context, sessionID gosesh.Identifier) error
- func (_m *Storer) DeleteUserSessions(ctx context.Context, userID gosesh.Identifier) (int, error)
- func (_m *Storer) EXPECT() *Storer_Expecter
- func (_m *Storer) GetSession(ctx context.Context, sessionID gosesh.Identifier) (*gosesh.Session, error)
- func (_m *Storer) UpdateSession(ctx context.Context, sessionID gosesh.Identifier, ...) (*gosesh.Session, error)
- func (_m *Storer) UpsertUser(ctx context.Context, udr gosesh.OAuth2User) (gosesh.Identifier, error)
- type Storer_CreateSession_Call
- func (_c *Storer_CreateSession_Call) Return(_a0 *gosesh.Session, _a1 error) *Storer_CreateSession_Call
- func (_c *Storer_CreateSession_Call) Run(run func(ctx context.Context, req gosesh.CreateSessionRequest)) *Storer_CreateSession_Call
- func (_c *Storer_CreateSession_Call) RunAndReturn(...) *Storer_CreateSession_Call
- type Storer_DeleteSession_Call
- func (_c *Storer_DeleteSession_Call) Return(_a0 error) *Storer_DeleteSession_Call
- func (_c *Storer_DeleteSession_Call) Run(run func(ctx context.Context, sessionID gosesh.Identifier)) *Storer_DeleteSession_Call
- func (_c *Storer_DeleteSession_Call) RunAndReturn(run func(context.Context, gosesh.Identifier) error) *Storer_DeleteSession_Call
- type Storer_DeleteUserSessions_Call
- func (_c *Storer_DeleteUserSessions_Call) Return(_a0 int, _a1 error) *Storer_DeleteUserSessions_Call
- func (_c *Storer_DeleteUserSessions_Call) Run(run func(ctx context.Context, userID gosesh.Identifier)) *Storer_DeleteUserSessions_Call
- func (_c *Storer_DeleteUserSessions_Call) RunAndReturn(run func(context.Context, gosesh.Identifier) (int, error)) *Storer_DeleteUserSessions_Call
- type Storer_Expecter
- func (_e *Storer_Expecter) CreateSession(ctx interface{}, req interface{}) *Storer_CreateSession_Call
- func (_e *Storer_Expecter) DeleteSession(ctx interface{}, sessionID interface{}) *Storer_DeleteSession_Call
- func (_e *Storer_Expecter) DeleteUserSessions(ctx interface{}, userID interface{}) *Storer_DeleteUserSessions_Call
- func (_e *Storer_Expecter) GetSession(ctx interface{}, sessionID interface{}) *Storer_GetSession_Call
- func (_e *Storer_Expecter) UpdateSession(ctx interface{}, sessionID interface{}, req interface{}) *Storer_UpdateSession_Call
- func (_e *Storer_Expecter) UpsertUser(ctx interface{}, udr interface{}) *Storer_UpsertUser_Call
- type Storer_GetSession_Call
- func (_c *Storer_GetSession_Call) Return(_a0 *gosesh.Session, _a1 error) *Storer_GetSession_Call
- func (_c *Storer_GetSession_Call) Run(run func(ctx context.Context, sessionID gosesh.Identifier)) *Storer_GetSession_Call
- func (_c *Storer_GetSession_Call) RunAndReturn(run func(context.Context, gosesh.Identifier) (*gosesh.Session, error)) *Storer_GetSession_Call
- type Storer_UpdateSession_Call
- func (_c *Storer_UpdateSession_Call) Return(_a0 *gosesh.Session, _a1 error) *Storer_UpdateSession_Call
- func (_c *Storer_UpdateSession_Call) Run(run func(ctx context.Context, sessionID gosesh.Identifier, ...)) *Storer_UpdateSession_Call
- func (_c *Storer_UpdateSession_Call) RunAndReturn(...) *Storer_UpdateSession_Call
- type Storer_UpsertUser_Call
- func (_c *Storer_UpsertUser_Call) Return(_a0 gosesh.Identifier, _a1 error) *Storer_UpsertUser_Call
- func (_c *Storer_UpsertUser_Call) Run(run func(ctx context.Context, udr gosesh.OAuth2User)) *Storer_UpsertUser_Call
- func (_c *Storer_UpsertUser_Call) RunAndReturn(run func(context.Context, gosesh.OAuth2User) (gosesh.Identifier, error)) *Storer_UpsertUser_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDParser ¶
IDParser is an autogenerated mock type for the IDParser type
func NewIDParser ¶
NewIDParser creates a new instance of IDParser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IDParser) EXPECT ¶
func (_m *IDParser) EXPECT() *IDParser_Expecter
type IDParser_Expecter ¶
type IDParser_Expecter struct {
// contains filtered or unexported fields
}
func (*IDParser_Expecter) Parse ¶
func (_e *IDParser_Expecter) Parse(_a0 interface{}) *IDParser_Parse_Call
Parse is a helper method to define mock.On call
- _a0 []byte
type IDParser_Parse_Call ¶
IDParser_Parse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parse'
func (*IDParser_Parse_Call) Return ¶
func (_c *IDParser_Parse_Call) Return(_a0 gosesh.Identifier, _a1 error) *IDParser_Parse_Call
func (*IDParser_Parse_Call) Run ¶
func (_c *IDParser_Parse_Call) Run(run func(_a0 []byte)) *IDParser_Parse_Call
func (*IDParser_Parse_Call) RunAndReturn ¶
func (_c *IDParser_Parse_Call) RunAndReturn(run func([]byte) (gosesh.Identifier, error)) *IDParser_Parse_Call
type Identifier ¶
Identifier is an autogenerated mock type for the Identifier type
func NewIdentifier ¶
func NewIdentifier(t interface { mock.TestingT Cleanup(func()) }) *Identifier
NewIdentifier creates a new instance of Identifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Identifier) EXPECT ¶
func (_m *Identifier) EXPECT() *Identifier_Expecter
func (*Identifier) String ¶
func (_m *Identifier) String() string
String provides a mock function with given fields:
type Identifier_Expecter ¶
type Identifier_Expecter struct {
// contains filtered or unexported fields
}
func (*Identifier_Expecter) String ¶
func (_e *Identifier_Expecter) String() *Identifier_String_Call
String is a helper method to define mock.On call
type Identifier_String_Call ¶
Identifier_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*Identifier_String_Call) Return ¶
func (_c *Identifier_String_Call) Return(_a0 string) *Identifier_String_Call
func (*Identifier_String_Call) Run ¶
func (_c *Identifier_String_Call) Run(run func()) *Identifier_String_Call
func (*Identifier_String_Call) RunAndReturn ¶
func (_c *Identifier_String_Call) RunAndReturn(run func() string) *Identifier_String_Call
type NewOpts ¶
NewOpts is an autogenerated mock type for the NewOpts type
func NewNewOpts ¶
NewNewOpts creates a new instance of NewOpts. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*NewOpts) EXPECT ¶
func (_m *NewOpts) EXPECT() *NewOpts_Expecter
type NewOpts_Execute_Call ¶
NewOpts_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*NewOpts_Execute_Call) Return ¶
func (_c *NewOpts_Execute_Call) Return() *NewOpts_Execute_Call
func (*NewOpts_Execute_Call) Run ¶
func (_c *NewOpts_Execute_Call) Run(run func(_a0 *gosesh.Gosesh)) *NewOpts_Execute_Call
func (*NewOpts_Execute_Call) RunAndReturn ¶
func (_c *NewOpts_Execute_Call) RunAndReturn(run func(*gosesh.Gosesh)) *NewOpts_Execute_Call
type NewOpts_Expecter ¶
type NewOpts_Expecter struct {
// contains filtered or unexported fields
}
func (*NewOpts_Expecter) Execute ¶
func (_e *NewOpts_Expecter) Execute(_a0 interface{}) *NewOpts_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *gosesh.Gosesh
type OAuth2User ¶
OAuth2User is an autogenerated mock type for the OAuth2User type
func NewOAuth2User ¶
func NewOAuth2User(t interface { mock.TestingT Cleanup(func()) }) *OAuth2User
NewOAuth2User creates a new instance of OAuth2User. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OAuth2User) EXPECT ¶
func (_m *OAuth2User) EXPECT() *OAuth2User_Expecter
func (*OAuth2User) String ¶
func (_m *OAuth2User) String() string
String provides a mock function with given fields:
func (*OAuth2User) Unmarshal ¶
func (_m *OAuth2User) Unmarshal(b []byte) error
Unmarshal provides a mock function with given fields: b
type OAuth2User_Expecter ¶
type OAuth2User_Expecter struct {
// contains filtered or unexported fields
}
func (*OAuth2User_Expecter) Request ¶
func (_e *OAuth2User_Expecter) Request(ctx interface{}, accessToken interface{}) *OAuth2User_Request_Call
Request is a helper method to define mock.On call
- ctx context.Context
- accessToken string
func (*OAuth2User_Expecter) String ¶
func (_e *OAuth2User_Expecter) String() *OAuth2User_String_Call
String is a helper method to define mock.On call
func (*OAuth2User_Expecter) Unmarshal ¶
func (_e *OAuth2User_Expecter) Unmarshal(b interface{}) *OAuth2User_Unmarshal_Call
Unmarshal is a helper method to define mock.On call
- b []byte
type OAuth2User_Request_Call ¶
OAuth2User_Request_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Request'
func (*OAuth2User_Request_Call) Return ¶
func (_c *OAuth2User_Request_Call) Return(_a0 *http.Response, _a1 error) *OAuth2User_Request_Call
func (*OAuth2User_Request_Call) Run ¶
func (_c *OAuth2User_Request_Call) Run(run func(ctx context.Context, accessToken string)) *OAuth2User_Request_Call
func (*OAuth2User_Request_Call) RunAndReturn ¶
func (_c *OAuth2User_Request_Call) RunAndReturn(run func(context.Context, string) (*http.Response, error)) *OAuth2User_Request_Call
type OAuth2User_String_Call ¶
OAuth2User_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*OAuth2User_String_Call) Return ¶
func (_c *OAuth2User_String_Call) Return(_a0 string) *OAuth2User_String_Call
func (*OAuth2User_String_Call) Run ¶
func (_c *OAuth2User_String_Call) Run(run func()) *OAuth2User_String_Call
func (*OAuth2User_String_Call) RunAndReturn ¶
func (_c *OAuth2User_String_Call) RunAndReturn(run func() string) *OAuth2User_String_Call
type OAuth2User_Unmarshal_Call ¶
OAuth2User_Unmarshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unmarshal'
func (*OAuth2User_Unmarshal_Call) Return ¶
func (_c *OAuth2User_Unmarshal_Call) Return(_a0 error) *OAuth2User_Unmarshal_Call
func (*OAuth2User_Unmarshal_Call) Run ¶
func (_c *OAuth2User_Unmarshal_Call) Run(run func(b []byte)) *OAuth2User_Unmarshal_Call
func (*OAuth2User_Unmarshal_Call) RunAndReturn ¶
func (_c *OAuth2User_Unmarshal_Call) RunAndReturn(run func([]byte) error) *OAuth2User_Unmarshal_Call
type Storer ¶
Storer is an autogenerated mock type for the Storer type
func NewStorer ¶
NewStorer creates a new instance of Storer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Storer) CreateSession ¶
func (_m *Storer) CreateSession(ctx context.Context, req gosesh.CreateSessionRequest) (*gosesh.Session, error)
CreateSession provides a mock function with given fields: ctx, req
func (*Storer) DeleteSession ¶
DeleteSession provides a mock function with given fields: ctx, sessionID
func (*Storer) DeleteUserSessions ¶
DeleteUserSessions provides a mock function with given fields: ctx, userID
func (*Storer) EXPECT ¶
func (_m *Storer) EXPECT() *Storer_Expecter
func (*Storer) GetSession ¶
func (_m *Storer) GetSession(ctx context.Context, sessionID gosesh.Identifier) (*gosesh.Session, error)
GetSession provides a mock function with given fields: ctx, sessionID
func (*Storer) UpdateSession ¶
func (_m *Storer) UpdateSession(ctx context.Context, sessionID gosesh.Identifier, req gosesh.UpdateSessionValues) (*gosesh.Session, error)
UpdateSession provides a mock function with given fields: ctx, sessionID, req
func (*Storer) UpsertUser ¶
func (_m *Storer) UpsertUser(ctx context.Context, udr gosesh.OAuth2User) (gosesh.Identifier, error)
UpsertUser provides a mock function with given fields: ctx, udr
type Storer_CreateSession_Call ¶
Storer_CreateSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSession'
func (*Storer_CreateSession_Call) Return ¶
func (_c *Storer_CreateSession_Call) Return(_a0 *gosesh.Session, _a1 error) *Storer_CreateSession_Call
func (*Storer_CreateSession_Call) Run ¶
func (_c *Storer_CreateSession_Call) Run(run func(ctx context.Context, req gosesh.CreateSessionRequest)) *Storer_CreateSession_Call
func (*Storer_CreateSession_Call) RunAndReturn ¶
func (_c *Storer_CreateSession_Call) RunAndReturn(run func(context.Context, gosesh.CreateSessionRequest) (*gosesh.Session, error)) *Storer_CreateSession_Call
type Storer_DeleteSession_Call ¶
Storer_DeleteSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSession'
func (*Storer_DeleteSession_Call) Return ¶
func (_c *Storer_DeleteSession_Call) Return(_a0 error) *Storer_DeleteSession_Call
func (*Storer_DeleteSession_Call) Run ¶
func (_c *Storer_DeleteSession_Call) Run(run func(ctx context.Context, sessionID gosesh.Identifier)) *Storer_DeleteSession_Call
func (*Storer_DeleteSession_Call) RunAndReturn ¶
func (_c *Storer_DeleteSession_Call) RunAndReturn(run func(context.Context, gosesh.Identifier) error) *Storer_DeleteSession_Call
type Storer_DeleteUserSessions_Call ¶
Storer_DeleteUserSessions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserSessions'
func (*Storer_DeleteUserSessions_Call) Return ¶
func (_c *Storer_DeleteUserSessions_Call) Return(_a0 int, _a1 error) *Storer_DeleteUserSessions_Call
func (*Storer_DeleteUserSessions_Call) Run ¶
func (_c *Storer_DeleteUserSessions_Call) Run(run func(ctx context.Context, userID gosesh.Identifier)) *Storer_DeleteUserSessions_Call
func (*Storer_DeleteUserSessions_Call) RunAndReturn ¶
func (_c *Storer_DeleteUserSessions_Call) RunAndReturn(run func(context.Context, gosesh.Identifier) (int, error)) *Storer_DeleteUserSessions_Call
type Storer_Expecter ¶
type Storer_Expecter struct {
// contains filtered or unexported fields
}
func (*Storer_Expecter) CreateSession ¶
func (_e *Storer_Expecter) CreateSession(ctx interface{}, req interface{}) *Storer_CreateSession_Call
CreateSession is a helper method to define mock.On call
- ctx context.Context
- req gosesh.CreateSessionRequest
func (*Storer_Expecter) DeleteSession ¶
func (_e *Storer_Expecter) DeleteSession(ctx interface{}, sessionID interface{}) *Storer_DeleteSession_Call
DeleteSession is a helper method to define mock.On call
- ctx context.Context
- sessionID gosesh.Identifier
func (*Storer_Expecter) DeleteUserSessions ¶
func (_e *Storer_Expecter) DeleteUserSessions(ctx interface{}, userID interface{}) *Storer_DeleteUserSessions_Call
DeleteUserSessions is a helper method to define mock.On call
- ctx context.Context
- userID gosesh.Identifier
func (*Storer_Expecter) GetSession ¶
func (_e *Storer_Expecter) GetSession(ctx interface{}, sessionID interface{}) *Storer_GetSession_Call
GetSession is a helper method to define mock.On call
- ctx context.Context
- sessionID gosesh.Identifier
func (*Storer_Expecter) UpdateSession ¶
func (_e *Storer_Expecter) UpdateSession(ctx interface{}, sessionID interface{}, req interface{}) *Storer_UpdateSession_Call
UpdateSession is a helper method to define mock.On call
- ctx context.Context
- sessionID gosesh.Identifier
- req gosesh.UpdateSessionValues
func (*Storer_Expecter) UpsertUser ¶
func (_e *Storer_Expecter) UpsertUser(ctx interface{}, udr interface{}) *Storer_UpsertUser_Call
UpsertUser is a helper method to define mock.On call
- ctx context.Context
- udr gosesh.OAuth2User
type Storer_GetSession_Call ¶
Storer_GetSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSession'
func (*Storer_GetSession_Call) Return ¶
func (_c *Storer_GetSession_Call) Return(_a0 *gosesh.Session, _a1 error) *Storer_GetSession_Call
func (*Storer_GetSession_Call) Run ¶
func (_c *Storer_GetSession_Call) Run(run func(ctx context.Context, sessionID gosesh.Identifier)) *Storer_GetSession_Call
func (*Storer_GetSession_Call) RunAndReturn ¶
func (_c *Storer_GetSession_Call) RunAndReturn(run func(context.Context, gosesh.Identifier) (*gosesh.Session, error)) *Storer_GetSession_Call
type Storer_UpdateSession_Call ¶
Storer_UpdateSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSession'
func (*Storer_UpdateSession_Call) Return ¶
func (_c *Storer_UpdateSession_Call) Return(_a0 *gosesh.Session, _a1 error) *Storer_UpdateSession_Call
func (*Storer_UpdateSession_Call) Run ¶
func (_c *Storer_UpdateSession_Call) Run(run func(ctx context.Context, sessionID gosesh.Identifier, req gosesh.UpdateSessionValues)) *Storer_UpdateSession_Call
func (*Storer_UpdateSession_Call) RunAndReturn ¶
func (_c *Storer_UpdateSession_Call) RunAndReturn(run func(context.Context, gosesh.Identifier, gosesh.UpdateSessionValues) (*gosesh.Session, error)) *Storer_UpdateSession_Call
type Storer_UpsertUser_Call ¶
Storer_UpsertUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertUser'
func (*Storer_UpsertUser_Call) Return ¶
func (_c *Storer_UpsertUser_Call) Return(_a0 gosesh.Identifier, _a1 error) *Storer_UpsertUser_Call
func (*Storer_UpsertUser_Call) Run ¶
func (_c *Storer_UpsertUser_Call) Run(run func(ctx context.Context, udr gosesh.OAuth2User)) *Storer_UpsertUser_Call
func (*Storer_UpsertUser_Call) RunAndReturn ¶
func (_c *Storer_UpsertUser_Call) RunAndReturn(run func(context.Context, gosesh.OAuth2User) (gosesh.Identifier, error)) *Storer_UpsertUser_Call