Documentation ¶
Index ¶
- type ControllerImpl
- func (c *ControllerImpl) CreateBook(ctx context.Context, input *models.Book) (*models.Book, error)
- func (c *ControllerImpl) GetAuthors(ctx context.Context, i *models.GetAuthorsInput) (*models.AuthorsResponse, string, error)
- func (c *ControllerImpl) GetAuthorsWithPut(ctx context.Context, i *models.GetAuthorsWithPutInput) (*models.AuthorsResponse, string, 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, int64, error)
- func (c *ControllerImpl) HealthCheck(ctx context.Context) error
- func (c *ControllerImpl) PutBook(ctx context.Context, input *models.Book) (*models.Book, 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) GetAuthors ¶ added in v1.3.0
func (c *ControllerImpl) GetAuthors(ctx context.Context, i *models.GetAuthorsInput) (*models.AuthorsResponse, string, error)
GetAuthors gets authors.
func (*ControllerImpl) GetAuthorsWithPut ¶ added in v1.5.0
func (c *ControllerImpl) GetAuthorsWithPut(ctx context.Context, i *models.GetAuthorsWithPutInput) ( *models.AuthorsResponse, string, error, )
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.