Documentation ¶
Index ¶
- type TestController
- func (c *TestController) After(ctx context.Context) error
- func (c *TestController) Before(ctx context.Context) error
- func (c *TestController) Create(ctx context.Context) error
- func (c *TestController) Delete(id string, ctx context.Context) error
- func (c *TestController) DeleteMany(ctx context.Context) error
- func (c *TestController) Head(ctx context.Context) error
- func (c *TestController) Options(ctx context.Context) error
- func (c *TestController) Path() string
- func (c *TestController) Read(id string, ctx context.Context) error
- func (c *TestController) ReadMany(ctx context.Context) error
- func (c *TestController) Replace(id string, ctx context.Context) error
- func (c *TestController) Update(id string, ctx context.Context) error
- func (c *TestController) UpdateMany(ctx context.Context) error
- type TestHandlerWithBeforeAndAfters
- func (c *TestHandlerWithBeforeAndAfters) After(ctx context.Context) error
- func (c *TestHandlerWithBeforeAndAfters) Before(ctx context.Context) error
- func (c *TestHandlerWithBeforeAndAfters) Create(ctx context.Context) error
- func (c *TestHandlerWithBeforeAndAfters) Path() string
- func (c *TestHandlerWithBeforeAndAfters) Replace(id string, ctx context.Context) error
- type TestSemiRestfulController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestController ¶
TestController ia a mocked (using testify/mock) objects that acts like a RESTful controller. It is used internally for testing code, but you can use it yourself if you need to in your test code too.
func (*TestController) Delete ¶
func (c *TestController) Delete(id string, ctx context.Context) error
func (*TestController) DeleteMany ¶
func (c *TestController) DeleteMany(ctx context.Context) error
func (*TestController) Path ¶
func (c *TestController) Path() string
func (*TestController) Replace ¶
func (c *TestController) Replace(id string, ctx context.Context) error
func (*TestController) Update ¶
func (c *TestController) Update(id string, ctx context.Context) error
func (*TestController) UpdateMany ¶
func (c *TestController) UpdateMany(ctx context.Context) error
type TestHandlerWithBeforeAndAfters ¶
func (*TestHandlerWithBeforeAndAfters) After ¶
func (c *TestHandlerWithBeforeAndAfters) After(ctx context.Context) error
func (*TestHandlerWithBeforeAndAfters) Before ¶
func (c *TestHandlerWithBeforeAndAfters) Before(ctx context.Context) error
func (*TestHandlerWithBeforeAndAfters) Create ¶
func (c *TestHandlerWithBeforeAndAfters) Create(ctx context.Context) error
func (*TestHandlerWithBeforeAndAfters) Path ¶
func (c *TestHandlerWithBeforeAndAfters) Path() string
type TestSemiRestfulController ¶
func (*TestSemiRestfulController) Create ¶
func (c *TestSemiRestfulController) Create(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.