mock

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

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

func (m *APIManagerMock) AppendMapper(ctx context.Context, mp *dao.Mapper) error

AppendMapper append entity mapper.

func (*APIManagerMock) CheckSubscription added in v0.4.1

func (m *APIManagerMock) CheckSubscription(ctx context.Context, en *apim.Base) (err error)

CheckSubscription check subscription.

func (*APIManagerMock) CreateEntity added in v0.4.1

func (m *APIManagerMock) CreateEntity(ctx context.Context, en *apim.Base) (*apim.Base, error)

CreateEntity create entity.

func (*APIManagerMock) DeleteEntity added in v0.4.1

func (m *APIManagerMock) DeleteEntity(ctx context.Context, en *apim.Base) (err error)

DeleteEntity delete entity.

func (*APIManagerMock) GetEntity added in v0.4.1

func (m *APIManagerMock) GetEntity(ctx context.Context, en *apim.Base) (base *apim.Base, err error)

GetProperties returns entity properties.

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 (m *APIManagerMock) GetEntityProps(ctx context.Context, en *apim.Base, propertyKeys []string) (*apim.Base, error)

func (*APIManagerMock) GetMapper added in v0.4.1

func (m *APIManagerMock) GetMapper(context.Context, *dao.Mapper) (*dao.Mapper, error)

func (*APIManagerMock) ListMapper added in v0.4.1

func (m *APIManagerMock) ListMapper(context.Context, *apim.Base) ([]dao.Mapper, error)

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

func (m *APIManagerMock) RemoveMapper(ctx context.Context, mp *dao.Mapper) error

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

func (m *APIManagerMock) UpdateEntity(ctx context.Context, en *apim.Base) (*apim.Base, error)

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 (*SearchMock) Index

func (*SearchMock) Search

Jump to

Keyboard shortcuts

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