test

package
v8.0.0-...-36f974d Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 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

GetAuthors gets authors.

func (*ControllerImpl) GetAuthorsWithPut

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

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