Documentation ¶
Index ¶
- type MockAppChannel
- type MockServer
- func (m *MockServer) ListInputBindings(ctx context.Context, in *emptypb.Empty) (*runtimev1pb.ListInputBindingsResponse, error)
- func (m *MockServer) ListTopicSubscriptions(ctx context.Context, in *emptypb.Empty) (*runtimev1pb.ListTopicSubscriptionsResponse, error)
- func (m *MockServer) OnBindingEvent(ctx context.Context, in *runtimev1pb.BindingEventRequest) (*runtimev1pb.BindingEventResponse, error)
- func (m *MockServer) OnInvoke(ctx context.Context, in *commonv1pb.InvokeRequest) (*commonv1pb.InvokeResponse, error)
- func (m *MockServer) OnTopicEvent(ctx context.Context, in *runtimev1pb.TopicEventRequest) (*runtimev1pb.TopicEventResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAppChannel ¶
MockAppChannel is an autogenerated mock type for the MockAppChannel type
func (*MockAppChannel) GetBaseAddress ¶ added in v0.6.0
func (_m *MockAppChannel) GetBaseAddress() string
GetBaseAddress provides a mock function with given fields:
func (*MockAppChannel) InvokeMethod ¶
func (_m *MockAppChannel) InvokeMethod(ctx context.Context, req *v1.InvokeMethodRequest) (*v1.InvokeMethodResponse, error)
InvokeMethod provides a mock function with given fields: ctx, req
type MockServer ¶ added in v1.0.0
type MockServer struct { Error error Subscriptions []*runtimev1pb.TopicSubscription Bindings []string BindingEventResponse runtimev1pb.BindingEventResponse TopicEventResponseStatus runtimev1pb.TopicEventResponse_TopicEventResponseStatus }
MockServer implementation of fake user app server
func (*MockServer) ListInputBindings ¶ added in v1.0.0
func (m *MockServer) ListInputBindings(ctx context.Context, in *emptypb.Empty) (*runtimev1pb.ListInputBindingsResponse, error)
func (*MockServer) ListTopicSubscriptions ¶ added in v1.0.0
func (m *MockServer) ListTopicSubscriptions(ctx context.Context, in *emptypb.Empty) (*runtimev1pb.ListTopicSubscriptionsResponse, error)
func (*MockServer) OnBindingEvent ¶ added in v1.0.0
func (m *MockServer) OnBindingEvent(ctx context.Context, in *runtimev1pb.BindingEventRequest) (*runtimev1pb.BindingEventResponse, error)
func (*MockServer) OnInvoke ¶ added in v1.0.0
func (m *MockServer) OnInvoke(ctx context.Context, in *commonv1pb.InvokeRequest) (*commonv1pb.InvokeResponse, error)
func (*MockServer) OnTopicEvent ¶ added in v1.0.0
func (m *MockServer) OnTopicEvent(ctx context.Context, in *runtimev1pb.TopicEventRequest) (*runtimev1pb.TopicEventResponse, error)
Click to show internal directories.
Click to hide internal directories.