test_logic

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 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) Create

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

func (*DummyController) DeleteById

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

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 (c *DummyController) GetOneById(ctx context.Context, correlationId string, id string) (result tdata.Dummy, err error)

func (*DummyController) GetPageByFilter

func (c *DummyController) GetPageByFilter(ctx context.Context, correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (*cdata.DataPage[tdata.Dummy], error)

func (*DummyController) Update

func (c *DummyController) Update(ctx context.Context, correlationId string, newEntity tdata.Dummy) (result tdata.Dummy, err 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)
}

Jump to

Keyboard shortcuts

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