Documentation ¶
Index ¶
- type ControllerImpl
- func (c *ControllerImpl) CreateBook(ctx context.Context, input *models.Book) (*models.Book, error)
- func (c *ControllerImpl) GetBookByID(ctx context.Context, input *models.GetBookByIDInput) (*models.Book, error)
- func (c *ControllerImpl) GetBookByID2(ctx context.Context, id string) (*models.Book, error)
- func (c *ControllerImpl) GetBooks(ctx context.Context, input *models.GetBooksInput) ([]models.Book, error)
- func (c *ControllerImpl) HealthCheck(ctx context.Context) error
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.