Documentation ¶
Index ¶
Constants ¶
View Source
const ( TestProtoName = "test.proto" TestServiceName = "TestService" TestMethodName = "TestMethod" TestInputName = "TestInput" TestOutputName = "TestOutput" DependencyProtoName = "dependency.proto" DependencyMessageName = "DependencyMessage" )
Variables ¶
View Source
var ( MockFileDescriptor = &descriptorpb.FileDescriptorProto{ Name: proto.String(TestProtoName), Service: []*descriptorpb.ServiceDescriptorProto{ { Name: proto.String(TestServiceName), Method: []*descriptorpb.MethodDescriptorProto{ { Name: proto.String(TestMethodName), InputType: proto.String(TestInputName), OutputType: proto.String(TestOutputName), }, }, }, }, MessageType: []*descriptorpb.DescriptorProto{ {Name: proto.String(TestInputName)}, {Name: proto.String(TestOutputName)}, }, Dependency: []string{DependencyProtoName}, } MockDependencyFileDescriptor = &descriptorpb.FileDescriptorProto{ Name: proto.String(DependencyProtoName), MessageType: []*descriptorpb.DescriptorProto{ {Name: proto.String(DependencyMessageName)}, }, } MockFileDescriptorSet = &descriptorpb.FileDescriptorSet{ File: []*descriptorpb.FileDescriptorProto{ MockDependencyFileDescriptor, MockFileDescriptor, }, } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.