listing

package
v0.0.0-...-b7fba14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepositoryMock

type RepositoryMock struct {
	Value interface{}
	Err   error
	Total int64
}

func NewRepositoryMock

func NewRepositoryMock(v interface{}, err error, total int64) *RepositoryMock

func (*RepositoryMock) GetPlanet

func (m *RepositoryMock) GetPlanet(ctx context.Context, planetID string) (listing.Planet, error)

func (*RepositoryMock) GetPlanets

func (m *RepositoryMock) GetPlanets(ctx context.Context, limit int64, offset int64) ([]listing.Planet, int64)

type ServiceMock

type ServiceMock struct {
	Value interface{}
	Err   error
	Total int64
}

func NewServiceMock

func NewServiceMock(v interface{}, err error, total int64) *ServiceMock

func (*ServiceMock) GetPlanet

func (m *ServiceMock) GetPlanet(ctx context.Context, id string) (listing.Planet, error)

func (*ServiceMock) GetPlanets

func (m *ServiceMock) GetPlanets(ctx context.Context, offset int64, limit int64) ([]listing.Planet, int64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL