Documentation
¶
Index ¶
- type DiscordOpt
- type DiscordOpt_Execute_Call
- type DiscordOpt_Expecter
- type GoogleOpt
- type GoogleOpt_Execute_Call
- type GoogleOpt_Expecter
- type Gosesher
- func (_m *Gosesher) EXPECT() *Gosesher_Expecter
- func (_m *Gosesher) Host() string
- func (_m *Gosesher) OAuth2Begin(cfg *oauth2.Config) http.HandlerFunc
- func (_m *Gosesher) OAuth2Callback(user gosesh.OAuth2User, cfg *oauth2.Config, handler gosesh.HandlerDone) http.HandlerFunc
- func (_m *Gosesher) Scheme() string
- type Gosesher_Expecter
- func (_e *Gosesher_Expecter) Host() *Gosesher_Host_Call
- func (_e *Gosesher_Expecter) OAuth2Begin(cfg interface{}) *Gosesher_OAuth2Begin_Call
- func (_e *Gosesher_Expecter) OAuth2Callback(user interface{}, cfg interface{}, handler interface{}) *Gosesher_OAuth2Callback_Call
- func (_e *Gosesher_Expecter) Scheme() *Gosesher_Scheme_Call
- type Gosesher_Host_Call
- type Gosesher_OAuth2Begin_Call
- func (_c *Gosesher_OAuth2Begin_Call) Return(_a0 http.HandlerFunc) *Gosesher_OAuth2Begin_Call
- func (_c *Gosesher_OAuth2Begin_Call) Run(run func(cfg *oauth2.Config)) *Gosesher_OAuth2Begin_Call
- func (_c *Gosesher_OAuth2Begin_Call) RunAndReturn(run func(*oauth2.Config) http.HandlerFunc) *Gosesher_OAuth2Begin_Call
- type Gosesher_OAuth2Callback_Call
- type Gosesher_Scheme_Call
- type Provider
- type Provider_Expecter
- type Provider_OAuth2Begin_Call
- type Provider_OAuth2Callback_Call
- func (_c *Provider_OAuth2Callback_Call) Return(_a0 http.HandlerFunc) *Provider_OAuth2Callback_Call
- func (_c *Provider_OAuth2Callback_Call) Run(run func(handler gosesh.HandlerDone)) *Provider_OAuth2Callback_Call
- func (_c *Provider_OAuth2Callback_Call) RunAndReturn(run func(gosesh.HandlerDone) http.HandlerFunc) *Provider_OAuth2Callback_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordOpt ¶ added in v0.1.2
DiscordOpt is an autogenerated mock type for the DiscordOpt type
func NewDiscordOpt ¶ added in v0.1.2
func NewDiscordOpt(t interface { mock.TestingT Cleanup(func()) }) *DiscordOpt
NewDiscordOpt creates a new instance of DiscordOpt. 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 (*DiscordOpt) EXPECT ¶ added in v0.1.2
func (_m *DiscordOpt) EXPECT() *DiscordOpt_Expecter
func (*DiscordOpt) Execute ¶ added in v0.1.2
func (_m *DiscordOpt) Execute(_a0 *providers.Discord)
Execute provides a mock function with given fields: _a0
type DiscordOpt_Execute_Call ¶ added in v0.1.2
DiscordOpt_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*DiscordOpt_Execute_Call) Return ¶ added in v0.1.2
func (_c *DiscordOpt_Execute_Call) Return() *DiscordOpt_Execute_Call
func (*DiscordOpt_Execute_Call) Run ¶ added in v0.1.2
func (_c *DiscordOpt_Execute_Call) Run(run func(_a0 *providers.Discord)) *DiscordOpt_Execute_Call
func (*DiscordOpt_Execute_Call) RunAndReturn ¶ added in v0.1.2
func (_c *DiscordOpt_Execute_Call) RunAndReturn(run func(*providers.Discord)) *DiscordOpt_Execute_Call
type DiscordOpt_Expecter ¶ added in v0.1.2
type DiscordOpt_Expecter struct {
// contains filtered or unexported fields
}
func (*DiscordOpt_Expecter) Execute ¶ added in v0.1.2
func (_e *DiscordOpt_Expecter) Execute(_a0 interface{}) *DiscordOpt_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *providers.Discord
type GoogleOpt ¶ added in v0.5.2
GoogleOpt is an autogenerated mock type for the GoogleOpt type
func NewGoogleOpt ¶ added in v0.5.2
NewGoogleOpt creates a new instance of GoogleOpt. 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 (*GoogleOpt) EXPECT ¶ added in v0.5.2
func (_m *GoogleOpt) EXPECT() *GoogleOpt_Expecter
type GoogleOpt_Execute_Call ¶ added in v0.5.2
GoogleOpt_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*GoogleOpt_Execute_Call) Return ¶ added in v0.5.2
func (_c *GoogleOpt_Execute_Call) Return() *GoogleOpt_Execute_Call
func (*GoogleOpt_Execute_Call) Run ¶ added in v0.5.2
func (_c *GoogleOpt_Execute_Call) Run(run func(_a0 *providers.Google)) *GoogleOpt_Execute_Call
func (*GoogleOpt_Execute_Call) RunAndReturn ¶ added in v0.5.2
func (_c *GoogleOpt_Execute_Call) RunAndReturn(run func(*providers.Google)) *GoogleOpt_Execute_Call
type GoogleOpt_Expecter ¶ added in v0.5.2
type GoogleOpt_Expecter struct {
// contains filtered or unexported fields
}
func (*GoogleOpt_Expecter) Execute ¶ added in v0.5.2
func (_e *GoogleOpt_Expecter) Execute(_a0 interface{}) *GoogleOpt_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *providers.Google
type Gosesher ¶
Gosesher is an autogenerated mock type for the Gosesher type
func NewGosesher ¶
NewGosesher creates a new instance of Gosesher. 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 (*Gosesher) EXPECT ¶
func (_m *Gosesher) EXPECT() *Gosesher_Expecter
func (*Gosesher) OAuth2Begin ¶
func (_m *Gosesher) OAuth2Begin(cfg *oauth2.Config) http.HandlerFunc
OAuth2Begin provides a mock function with given fields: cfg
func (*Gosesher) OAuth2Callback ¶
func (_m *Gosesher) OAuth2Callback(user gosesh.OAuth2User, cfg *oauth2.Config, handler gosesh.HandlerDone) http.HandlerFunc
OAuth2Callback provides a mock function with given fields: user, cfg, handler
type Gosesher_Expecter ¶
type Gosesher_Expecter struct {
// contains filtered or unexported fields
}
func (*Gosesher_Expecter) Host ¶
func (_e *Gosesher_Expecter) Host() *Gosesher_Host_Call
Host is a helper method to define mock.On call
func (*Gosesher_Expecter) OAuth2Begin ¶
func (_e *Gosesher_Expecter) OAuth2Begin(cfg interface{}) *Gosesher_OAuth2Begin_Call
OAuth2Begin is a helper method to define mock.On call
- cfg *oauth2.Config
func (*Gosesher_Expecter) OAuth2Callback ¶
func (_e *Gosesher_Expecter) OAuth2Callback(user interface{}, cfg interface{}, handler interface{}) *Gosesher_OAuth2Callback_Call
OAuth2Callback is a helper method to define mock.On call
- user gosesh.OAuth2User
- cfg *oauth2.Config
- handler gosesh.HandlerDone
func (*Gosesher_Expecter) Scheme ¶
func (_e *Gosesher_Expecter) Scheme() *Gosesher_Scheme_Call
Scheme is a helper method to define mock.On call
type Gosesher_Host_Call ¶
Gosesher_Host_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Host'
func (*Gosesher_Host_Call) Return ¶
func (_c *Gosesher_Host_Call) Return(_a0 string) *Gosesher_Host_Call
func (*Gosesher_Host_Call) Run ¶
func (_c *Gosesher_Host_Call) Run(run func()) *Gosesher_Host_Call
func (*Gosesher_Host_Call) RunAndReturn ¶
func (_c *Gosesher_Host_Call) RunAndReturn(run func() string) *Gosesher_Host_Call
type Gosesher_OAuth2Begin_Call ¶
Gosesher_OAuth2Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OAuth2Begin'
func (*Gosesher_OAuth2Begin_Call) Return ¶
func (_c *Gosesher_OAuth2Begin_Call) Return(_a0 http.HandlerFunc) *Gosesher_OAuth2Begin_Call
func (*Gosesher_OAuth2Begin_Call) Run ¶
func (_c *Gosesher_OAuth2Begin_Call) Run(run func(cfg *oauth2.Config)) *Gosesher_OAuth2Begin_Call
func (*Gosesher_OAuth2Begin_Call) RunAndReturn ¶
func (_c *Gosesher_OAuth2Begin_Call) RunAndReturn(run func(*oauth2.Config) http.HandlerFunc) *Gosesher_OAuth2Begin_Call
type Gosesher_OAuth2Callback_Call ¶
Gosesher_OAuth2Callback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OAuth2Callback'
func (*Gosesher_OAuth2Callback_Call) Return ¶
func (_c *Gosesher_OAuth2Callback_Call) Return(_a0 http.HandlerFunc) *Gosesher_OAuth2Callback_Call
func (*Gosesher_OAuth2Callback_Call) Run ¶
func (_c *Gosesher_OAuth2Callback_Call) Run(run func(user gosesh.OAuth2User, cfg *oauth2.Config, handler gosesh.HandlerDone)) *Gosesher_OAuth2Callback_Call
func (*Gosesher_OAuth2Callback_Call) RunAndReturn ¶
func (_c *Gosesher_OAuth2Callback_Call) RunAndReturn(run func(gosesh.OAuth2User, *oauth2.Config, gosesh.HandlerDone) http.HandlerFunc) *Gosesher_OAuth2Callback_Call
type Gosesher_Scheme_Call ¶
Gosesher_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*Gosesher_Scheme_Call) Return ¶
func (_c *Gosesher_Scheme_Call) Return(_a0 string) *Gosesher_Scheme_Call
func (*Gosesher_Scheme_Call) Run ¶
func (_c *Gosesher_Scheme_Call) Run(run func()) *Gosesher_Scheme_Call
func (*Gosesher_Scheme_Call) RunAndReturn ¶
func (_c *Gosesher_Scheme_Call) RunAndReturn(run func() string) *Gosesher_Scheme_Call
type Provider ¶ added in v0.5.2
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶ added in v0.5.2
NewProvider creates a new instance of Provider. 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 (*Provider) EXPECT ¶ added in v0.5.2
func (_m *Provider) EXPECT() *Provider_Expecter
func (*Provider) OAuth2Begin ¶ added in v0.5.2
func (_m *Provider) OAuth2Begin() http.HandlerFunc
OAuth2Begin provides a mock function with given fields:
func (*Provider) OAuth2Callback ¶ added in v0.5.2
func (_m *Provider) OAuth2Callback(handler gosesh.HandlerDone) http.HandlerFunc
OAuth2Callback provides a mock function with given fields: handler
type Provider_Expecter ¶ added in v0.5.2
type Provider_Expecter struct {
// contains filtered or unexported fields
}
func (*Provider_Expecter) OAuth2Begin ¶ added in v0.5.2
func (_e *Provider_Expecter) OAuth2Begin() *Provider_OAuth2Begin_Call
OAuth2Begin is a helper method to define mock.On call
func (*Provider_Expecter) OAuth2Callback ¶ added in v0.5.2
func (_e *Provider_Expecter) OAuth2Callback(handler interface{}) *Provider_OAuth2Callback_Call
OAuth2Callback is a helper method to define mock.On call
- handler gosesh.HandlerDone
type Provider_OAuth2Begin_Call ¶ added in v0.5.2
Provider_OAuth2Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OAuth2Begin'
func (*Provider_OAuth2Begin_Call) Return ¶ added in v0.5.2
func (_c *Provider_OAuth2Begin_Call) Return(_a0 http.HandlerFunc) *Provider_OAuth2Begin_Call
func (*Provider_OAuth2Begin_Call) Run ¶ added in v0.5.2
func (_c *Provider_OAuth2Begin_Call) Run(run func()) *Provider_OAuth2Begin_Call
func (*Provider_OAuth2Begin_Call) RunAndReturn ¶ added in v0.5.2
func (_c *Provider_OAuth2Begin_Call) RunAndReturn(run func() http.HandlerFunc) *Provider_OAuth2Begin_Call
type Provider_OAuth2Callback_Call ¶ added in v0.5.2
Provider_OAuth2Callback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OAuth2Callback'
func (*Provider_OAuth2Callback_Call) Return ¶ added in v0.5.2
func (_c *Provider_OAuth2Callback_Call) Return(_a0 http.HandlerFunc) *Provider_OAuth2Callback_Call
func (*Provider_OAuth2Callback_Call) Run ¶ added in v0.5.2
func (_c *Provider_OAuth2Callback_Call) Run(run func(handler gosesh.HandlerDone)) *Provider_OAuth2Callback_Call
func (*Provider_OAuth2Callback_Call) RunAndReturn ¶ added in v0.5.2
func (_c *Provider_OAuth2Callback_Call) RunAndReturn(run func(gosesh.HandlerDone) http.HandlerFunc) *Provider_OAuth2Callback_Call