Documentation ¶
Index ¶
- func NewAPIManagerMock() apim.APIManager
- func NewSearchMock() pb.SearchHTTPServer
- type APIManagerMock
- func (m *APIManagerMock) AppendMapper(ctx context.Context, mp *dao.Mapper) error
- func (m *APIManagerMock) CheckSubscription(ctx context.Context, en *apim.Base) (err error)
- func (m *APIManagerMock) CreateEntity(ctx context.Context, en *apim.Base) (*apim.Base, error)
- func (m *APIManagerMock) DeleteEntity(ctx context.Context, en *apim.Base) (err error)
- func (m *APIManagerMock) GetEntity(ctx context.Context, en *apim.Base) (base *apim.Base, err error)
- func (m *APIManagerMock) GetEntityConfigs(ctx context.Context, en *apim.Base, propertyIDs []string) (base *apim.Base, err error)
- func (m *APIManagerMock) GetEntityProps(ctx context.Context, en *apim.Base, propertyKeys []string) (*apim.Base, error)
- func (m *APIManagerMock) GetMapper(context.Context, *dao.Mapper) (*dao.Mapper, error)
- func (m *APIManagerMock) ListMapper(context.Context, *apim.Base) ([]dao.Mapper, error)
- func (m *APIManagerMock) OnRespond(ctx context.Context, resp *holder.Response)
- func (m *APIManagerMock) PatchEntityConfigs(ctx context.Context, en *apim.Base, patchData []state.PatchData) (base *apim.Base, err error)
- func (m *APIManagerMock) PatchEntityProps(ctx context.Context, en *apim.Base, patchData []state.PatchData) (base *apim.Base, err error)
- func (m *APIManagerMock) RemoveEntityConfigs(ctx context.Context, en *apim.Base, propertyIDs []string) (base *apim.Base, err error)
- func (m *APIManagerMock) RemoveMapper(ctx context.Context, mp *dao.Mapper) error
- func (m *APIManagerMock) Start() error
- func (m *APIManagerMock) UpdateEntity(ctx context.Context, en *apim.Base) (*apim.Base, error)
- func (m *APIManagerMock) UpdateEntityConfigs(ctx context.Context, en *apim.Base) (base *apim.Base, err error)
- func (m *APIManagerMock) UpdateEntityProps(ctx context.Context, en *apim.Base) (base *apim.Base, err error)
- type SearchMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIManagerMock ¶ added in v0.4.1
func NewAPIManagerMock() apim.APIManager
func NewSearchMock ¶
func NewSearchMock() pb.SearchHTTPServer
Types ¶
type APIManagerMock ¶ added in v0.4.1
type APIManagerMock struct { }
func (*APIManagerMock) AppendMapper ¶ added in v0.4.1
AppendMapper append entity mapper.
func (*APIManagerMock) CheckSubscription ¶ added in v0.4.1
CheckSubscription check subscription.
func (*APIManagerMock) CreateEntity ¶ added in v0.4.1
CreateEntity create entity.
func (*APIManagerMock) DeleteEntity ¶ added in v0.4.1
DeleteEntity delete entity.
func (*APIManagerMock) GetEntityConfigs ¶ added in v0.4.1
func (m *APIManagerMock) GetEntityConfigs(ctx context.Context, en *apim.Base, propertyIDs []string) (base *apim.Base, err error)
QueryConfigs returns entity configs.
func (*APIManagerMock) GetEntityProps ¶ added in v0.4.1
func (*APIManagerMock) ListMapper ¶ added in v0.4.1
ListMapper returns entity mappers.
func (*APIManagerMock) OnRespond ¶ added in v0.4.1
func (m *APIManagerMock) OnRespond(ctx context.Context, resp *holder.Response)
OnMessage handle message.
func (*APIManagerMock) PatchEntityConfigs ¶ added in v0.4.1
func (m *APIManagerMock) PatchEntityConfigs(ctx context.Context, en *apim.Base, patchData []state.PatchData) (base *apim.Base, err error)
PatchConfigs patch entity configs.
func (*APIManagerMock) PatchEntityProps ¶ added in v0.4.1
func (m *APIManagerMock) PatchEntityProps(ctx context.Context, en *apim.Base, patchData []state.PatchData) (base *apim.Base, err error)
PatchEntity patch entity properties.
func (*APIManagerMock) RemoveEntityConfigs ¶ added in v0.4.1
func (m *APIManagerMock) RemoveEntityConfigs(ctx context.Context, en *apim.Base, propertyIDs []string) (base *apim.Base, err error)
RemoveConfigs remove entity configs.
func (*APIManagerMock) RemoveMapper ¶ added in v0.4.1
RemoveMapper remove entity mapper.
func (*APIManagerMock) Start ¶ added in v0.4.1
func (m *APIManagerMock) Start() error
Start start Entity manager.
func (*APIManagerMock) UpdateEntity ¶ added in v0.4.1
UpdateEntity create entity.
func (*APIManagerMock) UpdateEntityConfigs ¶ added in v0.4.1
func (m *APIManagerMock) UpdateEntityConfigs(ctx context.Context, en *apim.Base) (base *apim.Base, err error)
SetConfigs set entity configs.
func (*APIManagerMock) UpdateEntityProps ¶ added in v0.4.1
func (m *APIManagerMock) UpdateEntityProps(ctx context.Context, en *apim.Base) (base *apim.Base, err error)
SetProperties set entity properties.
type SearchMock ¶
type SearchMock struct { }
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.