Documentation ¶
Index ¶
- type DummyCommandSet
- type DummyController
- func (c *DummyController) Create(ctx context.Context, correlationId string, entity tdata.Dummy) (result tdata.Dummy, err error)
- func (c *DummyController) DeleteById(ctx context.Context, correlationId string, id string) (result tdata.Dummy, err error)
- func (c *DummyController) GetCommandSet() *ccomand.CommandSet
- func (c *DummyController) GetOneById(ctx context.Context, correlationId string, id string) (result tdata.Dummy, err error)
- func (c *DummyController) GetPageByFilter(ctx context.Context, correlationId string, filter *cdata.FilterParams, ...) (*cdata.DataPage[tdata.Dummy], error)
- func (c *DummyController) Update(ctx context.Context, correlationId string, newEntity tdata.Dummy) (result tdata.Dummy, err error)
- type DummySchema
- type IDummyController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyCommandSet ¶
type DummyCommandSet struct { ccomand.CommandSet // contains filtered or unexported fields }
func NewDummyCommandSet ¶
func NewDummyCommandSet(controller IDummyController) *DummyCommandSet
type DummyController ¶
type DummyController struct {
// contains filtered or unexported fields
}
func NewDummyController ¶
func NewDummyController() *DummyController
func (*DummyController) DeleteById ¶
func (*DummyController) GetCommandSet ¶
func (c *DummyController) GetCommandSet() *ccomand.CommandSet
GetCommandSet gets a command set with all supported commands and events.
see CommandSet Returns: *CommandSet a command set with commands and events.
func (*DummyController) GetOneById ¶
func (*DummyController) GetPageByFilter ¶
func (c *DummyController) GetPageByFilter(ctx context.Context, correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (*cdata.DataPage[tdata.Dummy], error)
type DummySchema ¶
type DummySchema struct {
cvalid.ObjectSchema
}
func NewDummySchema ¶
func NewDummySchema() *DummySchema
type IDummyController ¶
type IDummyController interface { GetPageByFilter(ctx context.Context, correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (result *cdata.DataPage[tdata.Dummy], err error) GetOneById(ctx context.Context, correlationId string, id string) (result tdata.Dummy, err error) Create(ctx context.Context, correlationId string, entity tdata.Dummy) (result tdata.Dummy, err error) Update(ctx context.Context, correlationId string, entity tdata.Dummy) (result tdata.Dummy, err error) DeleteById(ctx context.Context, correlationId string, id string) (result tdata.Dummy, err error) }
Click to show internal directories.
Click to hide internal directories.