Documentation ¶
Index ¶
- func NewEntityManagerMock() entities.EntityManager
- type EntityManagerMock
- func (m *EntityManagerMock) AppendConfigs(ctx context.Context, en *statem.Base) (base *statem.Base, err error)
- func (m *EntityManagerMock) AppendMapper(ctx context.Context, en *statem.Base) (base *statem.Base, err error)
- func (m *EntityManagerMock) CheckSubscription(ctx context.Context, en *statem.Base) (err error)
- func (m *EntityManagerMock) CreateEntity(ctx context.Context, en *statem.Base) (*statem.Base, error)
- func (m *EntityManagerMock) DeleteEntity(ctx context.Context, en *statem.Base) (base *statem.Base, err error)
- func (m *EntityManagerMock) GetProperties(ctx context.Context, en *statem.Base) (base *statem.Base, err error)
- func (m *EntityManagerMock) OnMessage(ctx context.Context, msgCtx statem.MessageContext)
- func (m *EntityManagerMock) PatchConfigs(ctx context.Context, en *statem.Base, patchData []*statem.PatchData) (base *statem.Base, err error)
- func (m *EntityManagerMock) PatchEntity(ctx context.Context, en *statem.Base, patchData []*pb.PatchData) (base *statem.Base, err error)
- func (m *EntityManagerMock) QueryConfigs(ctx context.Context, en *statem.Base, propertyIDs []string) (base *statem.Base, err error)
- func (m *EntityManagerMock) RemoveConfigs(ctx context.Context, en *statem.Base, propertyIDs []string) (base *statem.Base, err error)
- func (m *EntityManagerMock) RemoveMapper(ctx context.Context, en *statem.Base) (base *statem.Base, err error)
- func (m *EntityManagerMock) SetConfigs(ctx context.Context, en *statem.Base) (base *statem.Base, err error)
- func (m *EntityManagerMock) SetProperties(ctx context.Context, en *statem.Base) (base *statem.Base, err error)
- func (m *EntityManagerMock) Start() error
- type SearchMock
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 ¶
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 (s *SearchMock) DeleteByID(context.Context, *pb.DeleteByIDRequest) (*pb.DeleteByIDResponse, error)
func (*SearchMock) Index ¶
func (s *SearchMock) Index(context.Context, *pb.IndexObject) (*pb.IndexResponse, error)
func (*SearchMock) Search ¶
func (s *SearchMock) Search(context.Context, *pb.SearchRequest) (*pb.SearchResponse, error)
Click to show internal directories.
Click to hide internal directories.