Documentation ¶
Overview ¶
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Index ¶
- Variables
- func RegisterChaosDogfoodServer(s grpc.ServiceRegistrar, srv ChaosDogfoodServer)
- type CatalogItem
- type CatalogReply
- type ChaosDogfoodClient
- type ChaosDogfoodClientMock
- func (_m *ChaosDogfoodClientMock) EXPECT() *ChaosDogfoodClientMock_Expecter
- func (_m *ChaosDogfoodClientMock) GetCatalog(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CatalogReply, error)
- func (_m *ChaosDogfoodClientMock) Order(ctx context.Context, in *FoodRequest, opts ...grpc.CallOption) (*FoodReply, error)
- type ChaosDogfoodClientMock_Expecter
- type ChaosDogfoodClientMock_GetCatalog_Call
- func (_c *ChaosDogfoodClientMock_GetCatalog_Call) Return(_a0 *CatalogReply, _a1 error) *ChaosDogfoodClientMock_GetCatalog_Call
- func (_c *ChaosDogfoodClientMock_GetCatalog_Call) Run(run func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption)) *ChaosDogfoodClientMock_GetCatalog_Call
- func (_c *ChaosDogfoodClientMock_GetCatalog_Call) RunAndReturn(...) *ChaosDogfoodClientMock_GetCatalog_Call
- type ChaosDogfoodClientMock_Order_Call
- func (_c *ChaosDogfoodClientMock_Order_Call) Return(_a0 *FoodReply, _a1 error) *ChaosDogfoodClientMock_Order_Call
- func (_c *ChaosDogfoodClientMock_Order_Call) Run(run func(ctx context.Context, in *FoodRequest, opts ...grpc.CallOption)) *ChaosDogfoodClientMock_Order_Call
- func (_c *ChaosDogfoodClientMock_Order_Call) RunAndReturn(...) *ChaosDogfoodClientMock_Order_Call
- type ChaosDogfoodServer
- type ChaosDogfoodServerMock
- type ChaosDogfoodServerMock_Expecter
- type ChaosDogfoodServerMock_GetCatalog_Call
- func (_c *ChaosDogfoodServerMock_GetCatalog_Call) Return(_a0 *CatalogReply, _a1 error) *ChaosDogfoodServerMock_GetCatalog_Call
- func (_c *ChaosDogfoodServerMock_GetCatalog_Call) Run(run func(_a0 context.Context, _a1 *emptypb.Empty)) *ChaosDogfoodServerMock_GetCatalog_Call
- func (_c *ChaosDogfoodServerMock_GetCatalog_Call) RunAndReturn(run func(context.Context, *emptypb.Empty) (*CatalogReply, error)) *ChaosDogfoodServerMock_GetCatalog_Call
- type ChaosDogfoodServerMock_Order_Call
- func (_c *ChaosDogfoodServerMock_Order_Call) Return(_a0 *FoodReply, _a1 error) *ChaosDogfoodServerMock_Order_Call
- func (_c *ChaosDogfoodServerMock_Order_Call) Run(run func(_a0 context.Context, _a1 *FoodRequest)) *ChaosDogfoodServerMock_Order_Call
- func (_c *ChaosDogfoodServerMock_Order_Call) RunAndReturn(run func(context.Context, *FoodRequest) (*FoodReply, error)) *ChaosDogfoodServerMock_Order_Call
- type ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call
- func (_c *ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) Return() *ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call
- func (_c *ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) Run(run func()) *ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call
- func (_c *ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) RunAndReturn(run func()) *ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call
- type FoodReply
- type FoodRequest
- type UnimplementedChaosDogfoodServer
- type UnsafeChaosDogfoodServer
- type UnsafeChaosDogfoodServerMock
- type UnsafeChaosDogfoodServerMock_Expecter
- type UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call
- func (_c *UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) Return() *UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call
- func (_c *UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) Run(run func()) *UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call
- func (_c *UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) RunAndReturn(run func()) *UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call
Constants ¶
This section is empty.
Variables ¶
var ChaosDogfood_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chaosdogfood.ChaosDogfood", HandlerType: (*ChaosDogfoodServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "order", Handler: _ChaosDogfood_Order_Handler, }, { MethodName: "getCatalog", Handler: _ChaosDogfood_GetCatalog_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "chaosdogfood.proto", }
ChaosDogfood_ServiceDesc is the grpc.ServiceDesc for ChaosDogfood service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_chaosdogfood_proto protoreflect.FileDescriptor
Functions ¶
func RegisterChaosDogfoodServer ¶
func RegisterChaosDogfoodServer(s grpc.ServiceRegistrar, srv ChaosDogfoodServer)
Types ¶
type CatalogItem ¶
type CatalogItem struct { Animal string `protobuf:"bytes,1,opt,name=animal,proto3" json:"animal,omitempty"` Food string `protobuf:"bytes,2,opt,name=food,proto3" json:"food,omitempty"` // contains filtered or unexported fields }
func (*CatalogItem) Descriptor
deprecated
func (*CatalogItem) Descriptor() ([]byte, []int)
Deprecated: Use CatalogItem.ProtoReflect.Descriptor instead.
func (*CatalogItem) GetAnimal ¶
func (x *CatalogItem) GetAnimal() string
func (*CatalogItem) GetFood ¶
func (x *CatalogItem) GetFood() string
func (*CatalogItem) ProtoMessage ¶
func (*CatalogItem) ProtoMessage()
func (*CatalogItem) ProtoReflect ¶
func (x *CatalogItem) ProtoReflect() protoreflect.Message
func (*CatalogItem) Reset ¶
func (x *CatalogItem) Reset()
func (*CatalogItem) String ¶
func (x *CatalogItem) String() string
type CatalogReply ¶
type CatalogReply struct { Items []*CatalogItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*CatalogReply) Descriptor
deprecated
func (*CatalogReply) Descriptor() ([]byte, []int)
Deprecated: Use CatalogReply.ProtoReflect.Descriptor instead.
func (*CatalogReply) GetItems ¶
func (x *CatalogReply) GetItems() []*CatalogItem
func (*CatalogReply) ProtoMessage ¶
func (*CatalogReply) ProtoMessage()
func (*CatalogReply) ProtoReflect ¶
func (x *CatalogReply) ProtoReflect() protoreflect.Message
func (*CatalogReply) Reset ¶
func (x *CatalogReply) Reset()
func (*CatalogReply) String ¶
func (x *CatalogReply) String() string
type ChaosDogfoodClient ¶
type ChaosDogfoodClient interface { Order(ctx context.Context, in *FoodRequest, opts ...grpc.CallOption) (*FoodReply, error) GetCatalog(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CatalogReply, error) }
ChaosDogfoodClient is the client API for ChaosDogfood service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewChaosDogfoodClient ¶
func NewChaosDogfoodClient(cc grpc.ClientConnInterface) ChaosDogfoodClient
type ChaosDogfoodClientMock ¶
ChaosDogfoodClientMock is an autogenerated mock type for the ChaosDogfoodClient type
func NewChaosDogfoodClientMock ¶
func NewChaosDogfoodClientMock(t interface { mock.TestingT Cleanup(func()) }) *ChaosDogfoodClientMock
NewChaosDogfoodClientMock creates a new instance of ChaosDogfoodClientMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ChaosDogfoodClientMock) EXPECT ¶
func (_m *ChaosDogfoodClientMock) EXPECT() *ChaosDogfoodClientMock_Expecter
func (*ChaosDogfoodClientMock) GetCatalog ¶
func (_m *ChaosDogfoodClientMock) GetCatalog(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CatalogReply, error)
GetCatalog provides a mock function with given fields: ctx, in, opts
func (*ChaosDogfoodClientMock) Order ¶
func (_m *ChaosDogfoodClientMock) Order(ctx context.Context, in *FoodRequest, opts ...grpc.CallOption) (*FoodReply, error)
Order provides a mock function with given fields: ctx, in, opts
type ChaosDogfoodClientMock_Expecter ¶
type ChaosDogfoodClientMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ChaosDogfoodClientMock_Expecter) GetCatalog ¶
func (_e *ChaosDogfoodClientMock_Expecter) GetCatalog(ctx interface{}, in interface{}, opts ...interface{}) *ChaosDogfoodClientMock_GetCatalog_Call
GetCatalog is a helper method to define mock.On call
- ctx context.Context
- in *emptypb.Empty
- opts ...grpc.CallOption
func (*ChaosDogfoodClientMock_Expecter) Order ¶
func (_e *ChaosDogfoodClientMock_Expecter) Order(ctx interface{}, in interface{}, opts ...interface{}) *ChaosDogfoodClientMock_Order_Call
Order is a helper method to define mock.On call
- ctx context.Context
- in *FoodRequest
- opts ...grpc.CallOption
type ChaosDogfoodClientMock_GetCatalog_Call ¶
ChaosDogfoodClientMock_GetCatalog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCatalog'
func (*ChaosDogfoodClientMock_GetCatalog_Call) Return ¶
func (_c *ChaosDogfoodClientMock_GetCatalog_Call) Return(_a0 *CatalogReply, _a1 error) *ChaosDogfoodClientMock_GetCatalog_Call
func (*ChaosDogfoodClientMock_GetCatalog_Call) Run ¶
func (_c *ChaosDogfoodClientMock_GetCatalog_Call) Run(run func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption)) *ChaosDogfoodClientMock_GetCatalog_Call
func (*ChaosDogfoodClientMock_GetCatalog_Call) RunAndReturn ¶
func (_c *ChaosDogfoodClientMock_GetCatalog_Call) RunAndReturn(run func(context.Context, *emptypb.Empty, ...grpc.CallOption) (*CatalogReply, error)) *ChaosDogfoodClientMock_GetCatalog_Call
type ChaosDogfoodClientMock_Order_Call ¶
ChaosDogfoodClientMock_Order_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Order'
func (*ChaosDogfoodClientMock_Order_Call) Return ¶
func (_c *ChaosDogfoodClientMock_Order_Call) Return(_a0 *FoodReply, _a1 error) *ChaosDogfoodClientMock_Order_Call
func (*ChaosDogfoodClientMock_Order_Call) Run ¶
func (_c *ChaosDogfoodClientMock_Order_Call) Run(run func(ctx context.Context, in *FoodRequest, opts ...grpc.CallOption)) *ChaosDogfoodClientMock_Order_Call
func (*ChaosDogfoodClientMock_Order_Call) RunAndReturn ¶
func (_c *ChaosDogfoodClientMock_Order_Call) RunAndReturn(run func(context.Context, *FoodRequest, ...grpc.CallOption) (*FoodReply, error)) *ChaosDogfoodClientMock_Order_Call
type ChaosDogfoodServer ¶
type ChaosDogfoodServer interface { Order(context.Context, *FoodRequest) (*FoodReply, error) GetCatalog(context.Context, *emptypb.Empty) (*CatalogReply, error) // contains filtered or unexported methods }
ChaosDogfoodServer is the server API for ChaosDogfood service. All implementations must embed UnimplementedChaosDogfoodServer for forward compatibility
type ChaosDogfoodServerMock ¶
ChaosDogfoodServerMock is an autogenerated mock type for the ChaosDogfoodServer type
func NewChaosDogfoodServerMock ¶
func NewChaosDogfoodServerMock(t interface { mock.TestingT Cleanup(func()) }) *ChaosDogfoodServerMock
NewChaosDogfoodServerMock creates a new instance of ChaosDogfoodServerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ChaosDogfoodServerMock) EXPECT ¶
func (_m *ChaosDogfoodServerMock) EXPECT() *ChaosDogfoodServerMock_Expecter
func (*ChaosDogfoodServerMock) GetCatalog ¶
func (_m *ChaosDogfoodServerMock) GetCatalog(_a0 context.Context, _a1 *emptypb.Empty) (*CatalogReply, error)
GetCatalog provides a mock function with given fields: _a0, _a1
func (*ChaosDogfoodServerMock) Order ¶
func (_m *ChaosDogfoodServerMock) Order(_a0 context.Context, _a1 *FoodRequest) (*FoodReply, error)
Order provides a mock function with given fields: _a0, _a1
type ChaosDogfoodServerMock_Expecter ¶
type ChaosDogfoodServerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ChaosDogfoodServerMock_Expecter) GetCatalog ¶
func (_e *ChaosDogfoodServerMock_Expecter) GetCatalog(_a0 interface{}, _a1 interface{}) *ChaosDogfoodServerMock_GetCatalog_Call
GetCatalog is a helper method to define mock.On call
- _a0 context.Context
- _a1 *emptypb.Empty
func (*ChaosDogfoodServerMock_Expecter) Order ¶
func (_e *ChaosDogfoodServerMock_Expecter) Order(_a0 interface{}, _a1 interface{}) *ChaosDogfoodServerMock_Order_Call
Order is a helper method to define mock.On call
- _a0 context.Context
- _a1 *FoodRequest
type ChaosDogfoodServerMock_GetCatalog_Call ¶
ChaosDogfoodServerMock_GetCatalog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCatalog'
func (*ChaosDogfoodServerMock_GetCatalog_Call) Return ¶
func (_c *ChaosDogfoodServerMock_GetCatalog_Call) Return(_a0 *CatalogReply, _a1 error) *ChaosDogfoodServerMock_GetCatalog_Call
func (*ChaosDogfoodServerMock_GetCatalog_Call) Run ¶
func (_c *ChaosDogfoodServerMock_GetCatalog_Call) Run(run func(_a0 context.Context, _a1 *emptypb.Empty)) *ChaosDogfoodServerMock_GetCatalog_Call
func (*ChaosDogfoodServerMock_GetCatalog_Call) RunAndReturn ¶
func (_c *ChaosDogfoodServerMock_GetCatalog_Call) RunAndReturn(run func(context.Context, *emptypb.Empty) (*CatalogReply, error)) *ChaosDogfoodServerMock_GetCatalog_Call
type ChaosDogfoodServerMock_Order_Call ¶
ChaosDogfoodServerMock_Order_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Order'
func (*ChaosDogfoodServerMock_Order_Call) Return ¶
func (_c *ChaosDogfoodServerMock_Order_Call) Return(_a0 *FoodReply, _a1 error) *ChaosDogfoodServerMock_Order_Call
func (*ChaosDogfoodServerMock_Order_Call) Run ¶
func (_c *ChaosDogfoodServerMock_Order_Call) Run(run func(_a0 context.Context, _a1 *FoodRequest)) *ChaosDogfoodServerMock_Order_Call
func (*ChaosDogfoodServerMock_Order_Call) RunAndReturn ¶
func (_c *ChaosDogfoodServerMock_Order_Call) RunAndReturn(run func(context.Context, *FoodRequest) (*FoodReply, error)) *ChaosDogfoodServerMock_Order_Call
type ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call ¶
ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedChaosDogfoodServer'
func (*ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) RunAndReturn ¶
func (_c *ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) RunAndReturn(run func()) *ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call
type FoodReply ¶
type FoodReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` ConfirmationId int32 `protobuf:"varint,2,opt,name=confirmation_id,json=confirmationId,proto3" json:"confirmation_id,omitempty"` // contains filtered or unexported fields }
func (*FoodReply) Descriptor
deprecated
func (*FoodReply) GetConfirmationId ¶
func (*FoodReply) GetMessage ¶
func (*FoodReply) ProtoMessage ¶
func (*FoodReply) ProtoMessage()
func (*FoodReply) ProtoReflect ¶
func (x *FoodReply) ProtoReflect() protoreflect.Message
type FoodRequest ¶
type FoodRequest struct { Animal string `protobuf:"bytes,1,opt,name=animal,proto3" json:"animal,omitempty"` // contains filtered or unexported fields }
func (*FoodRequest) Descriptor
deprecated
func (*FoodRequest) Descriptor() ([]byte, []int)
Deprecated: Use FoodRequest.ProtoReflect.Descriptor instead.
func (*FoodRequest) GetAnimal ¶
func (x *FoodRequest) GetAnimal() string
func (*FoodRequest) ProtoMessage ¶
func (*FoodRequest) ProtoMessage()
func (*FoodRequest) ProtoReflect ¶
func (x *FoodRequest) ProtoReflect() protoreflect.Message
func (*FoodRequest) Reset ¶
func (x *FoodRequest) Reset()
func (*FoodRequest) String ¶
func (x *FoodRequest) String() string
type UnimplementedChaosDogfoodServer ¶
type UnimplementedChaosDogfoodServer struct { }
UnimplementedChaosDogfoodServer must be embedded to have forward compatible implementations.
func (UnimplementedChaosDogfoodServer) GetCatalog ¶
func (UnimplementedChaosDogfoodServer) GetCatalog(context.Context, *emptypb.Empty) (*CatalogReply, error)
func (UnimplementedChaosDogfoodServer) Order ¶
func (UnimplementedChaosDogfoodServer) Order(context.Context, *FoodRequest) (*FoodReply, error)
type UnsafeChaosDogfoodServer ¶
type UnsafeChaosDogfoodServer interface {
// contains filtered or unexported methods
}
UnsafeChaosDogfoodServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChaosDogfoodServer will result in compilation errors.
type UnsafeChaosDogfoodServerMock ¶
UnsafeChaosDogfoodServerMock is an autogenerated mock type for the UnsafeChaosDogfoodServer type
func NewUnsafeChaosDogfoodServerMock ¶
func NewUnsafeChaosDogfoodServerMock(t interface { mock.TestingT Cleanup(func()) }) *UnsafeChaosDogfoodServerMock
NewUnsafeChaosDogfoodServerMock creates a new instance of UnsafeChaosDogfoodServerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UnsafeChaosDogfoodServerMock) EXPECT ¶
func (_m *UnsafeChaosDogfoodServerMock) EXPECT() *UnsafeChaosDogfoodServerMock_Expecter
type UnsafeChaosDogfoodServerMock_Expecter ¶
type UnsafeChaosDogfoodServerMock_Expecter struct {
// contains filtered or unexported fields
}
type UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call ¶
type UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call struct {
*mock.Call
}
UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedChaosDogfoodServer'
func (*UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) RunAndReturn ¶
func (_c *UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) RunAndReturn(run func()) *UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call