mock

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntityManagerMock

func NewEntityManagerMock() entities.EntityManager

Types

type EntityManagerMock

type EntityManagerMock struct {
}

func (*EntityManagerMock) AppendConfigs

func (m *EntityManagerMock) AppendConfigs(ctx context.Context, en *statem.Base) (base *statem.Base, err error)

AppendConfigs append entity configs.

func (*EntityManagerMock) AppendMapper

func (m *EntityManagerMock) AppendMapper(ctx context.Context, en *statem.Base) (base *statem.Base, err error)

AppendMapper append entity mapper.

func (*EntityManagerMock) CheckSubscription

func (m *EntityManagerMock) CheckSubscription(ctx context.Context, en *statem.Base) (err error)

CheckSubscription check subscription.

func (*EntityManagerMock) CreateEntity

func (m *EntityManagerMock) CreateEntity(ctx context.Context, en *statem.Base) (*statem.Base, error)

CreateEntity create entity.

func (*EntityManagerMock) DeleteEntity

func (m *EntityManagerMock) DeleteEntity(ctx context.Context, en *statem.Base) (base *statem.Base, err error)

DeleteEntity delete entity.

func (*EntityManagerMock) GetProperties

func (m *EntityManagerMock) GetProperties(ctx context.Context, en *statem.Base) (base *statem.Base, err error)

GetProperties returns entity properties.

func (*EntityManagerMock) OnMessage

func (m *EntityManagerMock) OnMessage(ctx context.Context, msgCtx statem.MessageContext)

OnMessage handle message.

func (*EntityManagerMock) PatchConfigs

func (m *EntityManagerMock) PatchConfigs(ctx context.Context, en *statem.Base, patchData []*statem.PatchData) (base *statem.Base, err error)

PatchConfigs patch entity configs.

func (*EntityManagerMock) PatchEntity

func (m *EntityManagerMock) PatchEntity(ctx context.Context, en *statem.Base, patchData []*pb.PatchData) (base *statem.Base, err error)

PatchEntity patch entity properties.

func (*EntityManagerMock) QueryConfigs

func (m *EntityManagerMock) QueryConfigs(ctx context.Context, en *statem.Base, propertyIDs []string) (base *statem.Base, err error)

QueryConfigs returns entity configs.

func (*EntityManagerMock) RemoveConfigs

func (m *EntityManagerMock) RemoveConfigs(ctx context.Context, en *statem.Base, propertyIDs []string) (base *statem.Base, err error)

RemoveConfigs remove entity configs.

func (*EntityManagerMock) RemoveMapper

func (m *EntityManagerMock) RemoveMapper(ctx context.Context, en *statem.Base) (base *statem.Base, err error)

RemoveMapper remove entity mapper.

func (*EntityManagerMock) SetConfigs

func (m *EntityManagerMock) SetConfigs(ctx context.Context, en *statem.Base) (base *statem.Base, err error)

SetConfigs set entity configs.

func (*EntityManagerMock) SetProperties

func (m *EntityManagerMock) SetProperties(ctx context.Context, en *statem.Base) (base *statem.Base, err error)

SetProperties set entity properties.

func (*EntityManagerMock) Start

func (m *EntityManagerMock) Start() error

Start start Entity manager.

type SearchMock

type SearchMock struct {
}

func NewSearchMock

func NewSearchMock() *SearchMock

func (*SearchMock) DeleteByID

func (*SearchMock) Index

func (*SearchMock) Search

Jump to

Keyboard shortcuts

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