chaosdogfood

package
v0.0.0-...-1e8dc9b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

type ChaosDogfoodClientMock

type ChaosDogfoodClientMock struct {
	mock.Mock
}

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 (*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

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

type ChaosDogfoodClientMock_GetCatalog_Call struct {
	*mock.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 (*ChaosDogfoodClientMock_GetCatalog_Call) Run

func (*ChaosDogfoodClientMock_GetCatalog_Call) RunAndReturn

type ChaosDogfoodClientMock_Order_Call

type ChaosDogfoodClientMock_Order_Call struct {
	*mock.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 (*ChaosDogfoodClientMock_Order_Call) Run

func (*ChaosDogfoodClientMock_Order_Call) RunAndReturn

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

type ChaosDogfoodServerMock struct {
	mock.Mock
}

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 (*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

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

type ChaosDogfoodServerMock_GetCatalog_Call struct {
	*mock.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 (*ChaosDogfoodServerMock_GetCatalog_Call) Run

func (*ChaosDogfoodServerMock_GetCatalog_Call) RunAndReturn

type ChaosDogfoodServerMock_Order_Call

type ChaosDogfoodServerMock_Order_Call struct {
	*mock.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 (*ChaosDogfoodServerMock_Order_Call) Run

func (*ChaosDogfoodServerMock_Order_Call) RunAndReturn

type ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call

type ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call struct {
	*mock.Call
}

ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedChaosDogfoodServer'

func (*ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) Return

func (*ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) Run

func (*ChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) RunAndReturn

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) Descriptor() ([]byte, []int)

Deprecated: Use FoodReply.ProtoReflect.Descriptor instead.

func (*FoodReply) GetConfirmationId

func (x *FoodReply) GetConfirmationId() int32

func (*FoodReply) GetMessage

func (x *FoodReply) GetMessage() string

func (*FoodReply) ProtoMessage

func (*FoodReply) ProtoMessage()

func (*FoodReply) ProtoReflect

func (x *FoodReply) ProtoReflect() protoreflect.Message

func (*FoodReply) Reset

func (x *FoodReply) Reset()

func (*FoodReply) String

func (x *FoodReply) String() string

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) Order

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

type UnsafeChaosDogfoodServerMock struct {
	mock.Mock
}

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

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) Return

func (*UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) Run

func (*UnsafeChaosDogfoodServerMock_mustEmbedUnimplementedChaosDogfoodServer_Call) RunAndReturn

Jump to

Keyboard shortcuts

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