test

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerImpl

type ControllerImpl struct {
	// contains filtered or unexported fields
}

ControllerImpl implements the test server controller interface.

func (*ControllerImpl) CreateBook

func (c *ControllerImpl) CreateBook(ctx context.Context, input *models.Book) (*models.Book, error)

CreateBook creates a book.

func (*ControllerImpl) GetBookByID

func (c *ControllerImpl) GetBookByID(ctx context.Context, input *models.GetBookByIDInput) (*models.Book, error)

GetBookByID returns a book by ID.

func (*ControllerImpl) GetBookByID2

func (c *ControllerImpl) GetBookByID2(ctx context.Context, id string) (*models.Book, error)

GetBookByID2 returns a book by ID.

func (*ControllerImpl) GetBooks

func (c *ControllerImpl) GetBooks(ctx context.Context, input *models.GetBooksInput) ([]models.Book, error)

GetBooks returns a list of books.

func (*ControllerImpl) HealthCheck

func (c *ControllerImpl) HealthCheck(ctx context.Context) error

HealthCheck returns nil always.

Jump to

Keyboard shortcuts

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