test_logic

package
v1.4.3-60 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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) CheckCorrelationId

func (c *DummyController) CheckCorrelationId(correlationId string) (result map[string]string, err error)

func (*DummyController) CheckErrorPropagation added in v1.4.3

func (c *DummyController) CheckErrorPropagation(correlationId string) error

func (*DummyController) Create

func (c *DummyController) Create(correlationId string, entity tdata.Dummy) (result *tdata.Dummy, err error)

func (*DummyController) DeleteById

func (c *DummyController) DeleteById(correlationId string, id string) (result *tdata.Dummy, err error)

func (*DummyController) GetCommandSet

func (c *DummyController) GetCommandSet() *ccomand.CommandSet

func (*DummyController) GetOneById

func (c *DummyController) GetOneById(correlationId string, id string) (result *tdata.Dummy, err error)

func (*DummyController) GetPageByFilter

func (c *DummyController) GetPageByFilter(correlationId string, filter *cdata.FilterParams,
	paging *cdata.PagingParams) (items *tdata.DummyDataPage, err error)

func (*DummyController) Update

func (c *DummyController) Update(correlationId string, newEntity tdata.Dummy) (result *tdata.Dummy, err error)

type IDummyController

type IDummyController interface {
	GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (result *tdata.DummyDataPage, err error)
	GetOneById(correlationId string, id string) (result *tdata.Dummy, err error)
	Create(correlationId string, entity tdata.Dummy) (result *tdata.Dummy, err error)
	Update(correlationId string, entity tdata.Dummy) (result *tdata.Dummy, err error)
	DeleteById(correlationId string, id string) (result *tdata.Dummy, err error)

	CheckCorrelationId(correlationId string) (result map[string]string, err error)

	CheckErrorPropagation(correlationId string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL