Documentation ¶
Index ¶
- type Getter
- func (_m *Getter) EXPECT() *Getter_Expecter
- func (_m *Getter) GetEpisodes(ctx context.Context, key string) ([]plex.Episode, error)
- func (_m *Getter) GetIdentity(_a0 context.Context) (plex.Identity, error)
- func (_m *Getter) GetLibraries(ctx context.Context) ([]plex.Library, error)
- func (_m *Getter) GetMovies(ctx context.Context, key string) ([]plex.Movie, error)
- func (_m *Getter) GetSeasons(ctx context.Context, key string) ([]plex.Season, error)
- func (_m *Getter) GetSessions(_a0 context.Context) ([]plex.Session, error)
- func (_m *Getter) GetShows(ctx context.Context, key string) ([]plex.Show, error)
- type Getter_Expecter
- func (_e *Getter_Expecter) GetEpisodes(ctx interface{}, key interface{}) *Getter_GetEpisodes_Call
- func (_e *Getter_Expecter) GetIdentity(_a0 interface{}) *Getter_GetIdentity_Call
- func (_e *Getter_Expecter) GetLibraries(ctx interface{}) *Getter_GetLibraries_Call
- func (_e *Getter_Expecter) GetMovies(ctx interface{}, key interface{}) *Getter_GetMovies_Call
- func (_e *Getter_Expecter) GetSeasons(ctx interface{}, key interface{}) *Getter_GetSeasons_Call
- func (_e *Getter_Expecter) GetSessions(_a0 interface{}) *Getter_GetSessions_Call
- func (_e *Getter_Expecter) GetShows(ctx interface{}, key interface{}) *Getter_GetShows_Call
- type Getter_GetEpisodes_Call
- func (_c *Getter_GetEpisodes_Call) Return(_a0 []plex.Episode, _a1 error) *Getter_GetEpisodes_Call
- func (_c *Getter_GetEpisodes_Call) Run(run func(ctx context.Context, key string)) *Getter_GetEpisodes_Call
- func (_c *Getter_GetEpisodes_Call) RunAndReturn(run func(context.Context, string) ([]plex.Episode, error)) *Getter_GetEpisodes_Call
- type Getter_GetIdentity_Call
- func (_c *Getter_GetIdentity_Call) Return(_a0 plex.Identity, _a1 error) *Getter_GetIdentity_Call
- func (_c *Getter_GetIdentity_Call) Run(run func(_a0 context.Context)) *Getter_GetIdentity_Call
- func (_c *Getter_GetIdentity_Call) RunAndReturn(run func(context.Context) (plex.Identity, error)) *Getter_GetIdentity_Call
- type Getter_GetLibraries_Call
- func (_c *Getter_GetLibraries_Call) Return(_a0 []plex.Library, _a1 error) *Getter_GetLibraries_Call
- func (_c *Getter_GetLibraries_Call) Run(run func(ctx context.Context)) *Getter_GetLibraries_Call
- func (_c *Getter_GetLibraries_Call) RunAndReturn(run func(context.Context) ([]plex.Library, error)) *Getter_GetLibraries_Call
- type Getter_GetMovies_Call
- func (_c *Getter_GetMovies_Call) Return(_a0 []plex.Movie, _a1 error) *Getter_GetMovies_Call
- func (_c *Getter_GetMovies_Call) Run(run func(ctx context.Context, key string)) *Getter_GetMovies_Call
- func (_c *Getter_GetMovies_Call) RunAndReturn(run func(context.Context, string) ([]plex.Movie, error)) *Getter_GetMovies_Call
- type Getter_GetSeasons_Call
- func (_c *Getter_GetSeasons_Call) Return(_a0 []plex.Season, _a1 error) *Getter_GetSeasons_Call
- func (_c *Getter_GetSeasons_Call) Run(run func(ctx context.Context, key string)) *Getter_GetSeasons_Call
- func (_c *Getter_GetSeasons_Call) RunAndReturn(run func(context.Context, string) ([]plex.Season, error)) *Getter_GetSeasons_Call
- type Getter_GetSessions_Call
- func (_c *Getter_GetSessions_Call) Return(_a0 []plex.Session, _a1 error) *Getter_GetSessions_Call
- func (_c *Getter_GetSessions_Call) Run(run func(_a0 context.Context)) *Getter_GetSessions_Call
- func (_c *Getter_GetSessions_Call) RunAndReturn(run func(context.Context) ([]plex.Session, error)) *Getter_GetSessions_Call
- type Getter_GetShows_Call
- func (_c *Getter_GetShows_Call) Return(_a0 []plex.Show, _a1 error) *Getter_GetShows_Call
- func (_c *Getter_GetShows_Call) Run(run func(ctx context.Context, key string)) *Getter_GetShows_Call
- func (_c *Getter_GetShows_Call) RunAndReturn(run func(context.Context, string) ([]plex.Show, error)) *Getter_GetShows_Call
- type IPLocator
- type IPLocator_Expecter
- type IPLocator_Locate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Getter ¶ added in v2.8.0
Getter is an autogenerated mock type for the Getter type
func NewGetter ¶ added in v2.8.0
NewGetter creates a new instance of Getter. 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 (*Getter) EXPECT ¶ added in v2.8.0
func (_m *Getter) EXPECT() *Getter_Expecter
func (*Getter) GetEpisodes ¶ added in v2.8.0
GetEpisodes provides a mock function with given fields: ctx, key
func (*Getter) GetIdentity ¶ added in v2.8.0
GetIdentity provides a mock function with given fields: _a0
func (*Getter) GetLibraries ¶ added in v2.8.0
GetLibraries provides a mock function with given fields: ctx
func (*Getter) GetMovies ¶ added in v2.8.0
GetMovies provides a mock function with given fields: ctx, key
func (*Getter) GetSeasons ¶ added in v2.8.0
GetSeasons provides a mock function with given fields: ctx, key
func (*Getter) GetSessions ¶ added in v2.8.0
GetSessions provides a mock function with given fields: _a0
type Getter_Expecter ¶ added in v2.8.0
type Getter_Expecter struct {
// contains filtered or unexported fields
}
func (*Getter_Expecter) GetEpisodes ¶ added in v2.8.0
func (_e *Getter_Expecter) GetEpisodes(ctx interface{}, key interface{}) *Getter_GetEpisodes_Call
GetEpisodes is a helper method to define mock.On call
- ctx context.Context
- key string
func (*Getter_Expecter) GetIdentity ¶ added in v2.8.0
func (_e *Getter_Expecter) GetIdentity(_a0 interface{}) *Getter_GetIdentity_Call
GetIdentity is a helper method to define mock.On call
- _a0 context.Context
func (*Getter_Expecter) GetLibraries ¶ added in v2.8.0
func (_e *Getter_Expecter) GetLibraries(ctx interface{}) *Getter_GetLibraries_Call
GetLibraries is a helper method to define mock.On call
- ctx context.Context
func (*Getter_Expecter) GetMovies ¶ added in v2.8.0
func (_e *Getter_Expecter) GetMovies(ctx interface{}, key interface{}) *Getter_GetMovies_Call
GetMovies is a helper method to define mock.On call
- ctx context.Context
- key string
func (*Getter_Expecter) GetSeasons ¶ added in v2.8.0
func (_e *Getter_Expecter) GetSeasons(ctx interface{}, key interface{}) *Getter_GetSeasons_Call
GetSeasons is a helper method to define mock.On call
- ctx context.Context
- key string
func (*Getter_Expecter) GetSessions ¶ added in v2.8.0
func (_e *Getter_Expecter) GetSessions(_a0 interface{}) *Getter_GetSessions_Call
GetSessions is a helper method to define mock.On call
- _a0 context.Context
func (*Getter_Expecter) GetShows ¶ added in v2.8.0
func (_e *Getter_Expecter) GetShows(ctx interface{}, key interface{}) *Getter_GetShows_Call
GetShows is a helper method to define mock.On call
- ctx context.Context
- key string
type Getter_GetEpisodes_Call ¶ added in v2.8.0
Getter_GetEpisodes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEpisodes'
func (*Getter_GetEpisodes_Call) Return ¶ added in v2.8.0
func (_c *Getter_GetEpisodes_Call) Return(_a0 []plex.Episode, _a1 error) *Getter_GetEpisodes_Call
func (*Getter_GetEpisodes_Call) Run ¶ added in v2.8.0
func (_c *Getter_GetEpisodes_Call) Run(run func(ctx context.Context, key string)) *Getter_GetEpisodes_Call
func (*Getter_GetEpisodes_Call) RunAndReturn ¶ added in v2.8.0
func (_c *Getter_GetEpisodes_Call) RunAndReturn(run func(context.Context, string) ([]plex.Episode, error)) *Getter_GetEpisodes_Call
type Getter_GetIdentity_Call ¶ added in v2.8.0
Getter_GetIdentity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIdentity'
func (*Getter_GetIdentity_Call) Return ¶ added in v2.8.0
func (_c *Getter_GetIdentity_Call) Return(_a0 plex.Identity, _a1 error) *Getter_GetIdentity_Call
func (*Getter_GetIdentity_Call) Run ¶ added in v2.8.0
func (_c *Getter_GetIdentity_Call) Run(run func(_a0 context.Context)) *Getter_GetIdentity_Call
func (*Getter_GetIdentity_Call) RunAndReturn ¶ added in v2.8.0
func (_c *Getter_GetIdentity_Call) RunAndReturn(run func(context.Context) (plex.Identity, error)) *Getter_GetIdentity_Call
type Getter_GetLibraries_Call ¶ added in v2.8.0
Getter_GetLibraries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLibraries'
func (*Getter_GetLibraries_Call) Return ¶ added in v2.8.0
func (_c *Getter_GetLibraries_Call) Return(_a0 []plex.Library, _a1 error) *Getter_GetLibraries_Call
func (*Getter_GetLibraries_Call) Run ¶ added in v2.8.0
func (_c *Getter_GetLibraries_Call) Run(run func(ctx context.Context)) *Getter_GetLibraries_Call
func (*Getter_GetLibraries_Call) RunAndReturn ¶ added in v2.8.0
func (_c *Getter_GetLibraries_Call) RunAndReturn(run func(context.Context) ([]plex.Library, error)) *Getter_GetLibraries_Call
type Getter_GetMovies_Call ¶ added in v2.8.0
Getter_GetMovies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMovies'
func (*Getter_GetMovies_Call) Return ¶ added in v2.8.0
func (_c *Getter_GetMovies_Call) Return(_a0 []plex.Movie, _a1 error) *Getter_GetMovies_Call
func (*Getter_GetMovies_Call) Run ¶ added in v2.8.0
func (_c *Getter_GetMovies_Call) Run(run func(ctx context.Context, key string)) *Getter_GetMovies_Call
func (*Getter_GetMovies_Call) RunAndReturn ¶ added in v2.8.0
func (_c *Getter_GetMovies_Call) RunAndReturn(run func(context.Context, string) ([]plex.Movie, error)) *Getter_GetMovies_Call
type Getter_GetSeasons_Call ¶ added in v2.8.0
Getter_GetSeasons_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSeasons'
func (*Getter_GetSeasons_Call) Return ¶ added in v2.8.0
func (_c *Getter_GetSeasons_Call) Return(_a0 []plex.Season, _a1 error) *Getter_GetSeasons_Call
func (*Getter_GetSeasons_Call) Run ¶ added in v2.8.0
func (_c *Getter_GetSeasons_Call) Run(run func(ctx context.Context, key string)) *Getter_GetSeasons_Call
func (*Getter_GetSeasons_Call) RunAndReturn ¶ added in v2.8.0
func (_c *Getter_GetSeasons_Call) RunAndReturn(run func(context.Context, string) ([]plex.Season, error)) *Getter_GetSeasons_Call
type Getter_GetSessions_Call ¶ added in v2.8.0
Getter_GetSessions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSessions'
func (*Getter_GetSessions_Call) Return ¶ added in v2.8.0
func (_c *Getter_GetSessions_Call) Return(_a0 []plex.Session, _a1 error) *Getter_GetSessions_Call
func (*Getter_GetSessions_Call) Run ¶ added in v2.8.0
func (_c *Getter_GetSessions_Call) Run(run func(_a0 context.Context)) *Getter_GetSessions_Call
func (*Getter_GetSessions_Call) RunAndReturn ¶ added in v2.8.0
func (_c *Getter_GetSessions_Call) RunAndReturn(run func(context.Context) ([]plex.Session, error)) *Getter_GetSessions_Call
type Getter_GetShows_Call ¶ added in v2.8.0
Getter_GetShows_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetShows'
func (*Getter_GetShows_Call) Return ¶ added in v2.8.0
func (_c *Getter_GetShows_Call) Return(_a0 []plex.Show, _a1 error) *Getter_GetShows_Call
func (*Getter_GetShows_Call) Run ¶ added in v2.8.0
func (_c *Getter_GetShows_Call) Run(run func(ctx context.Context, key string)) *Getter_GetShows_Call
func (*Getter_GetShows_Call) RunAndReturn ¶ added in v2.8.0
func (_c *Getter_GetShows_Call) RunAndReturn(run func(context.Context, string) ([]plex.Show, error)) *Getter_GetShows_Call
type IPLocator ¶
IPLocator is an autogenerated mock type for the IPLocator type
func NewIPLocator ¶
NewIPLocator creates a new instance of IPLocator. 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 (*IPLocator) EXPECT ¶ added in v2.7.0
func (_m *IPLocator) EXPECT() *IPLocator_Expecter
type IPLocator_Expecter ¶ added in v2.7.0
type IPLocator_Expecter struct {
// contains filtered or unexported fields
}
func (*IPLocator_Expecter) Locate ¶ added in v2.7.0
func (_e *IPLocator_Expecter) Locate(_a0 interface{}) *IPLocator_Locate_Call
Locate is a helper method to define mock.On call
- _a0 string
type IPLocator_Locate_Call ¶ added in v2.7.0
IPLocator_Locate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Locate'
func (*IPLocator_Locate_Call) Return ¶ added in v2.7.0
func (_c *IPLocator_Locate_Call) Return(_a0 float64, _a1 float64, _a2 error) *IPLocator_Locate_Call
func (*IPLocator_Locate_Call) Run ¶ added in v2.7.0
func (_c *IPLocator_Locate_Call) Run(run func(_a0 string)) *IPLocator_Locate_Call
func (*IPLocator_Locate_Call) RunAndReturn ¶ added in v2.7.0
func (_c *IPLocator_Locate_Call) RunAndReturn(run func(string) (float64, float64, error)) *IPLocator_Locate_Call