test

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 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) GetAuthors added in v1.3.0

GetAuthors gets authors.

func (*ControllerImpl) GetAuthorsWithPut added in v1.5.0

GetAuthorsWithPut gets authors with a PUT (because it needs a body).

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, int64, error)

GetBooks returns a list of books.

func (*ControllerImpl) HealthCheck

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

HealthCheck returns nil always.

func (*ControllerImpl) PutBook added in v1.4.3

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

PutBook creates a book.

Jump to

Keyboard shortcuts

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