Documentation
¶
Index ¶
- Constants
- Variables
- func NewHostsServiceServer() hosts_pb.HostServiceServer
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- func Run(port string) (func(), error)
- type EchoRequest
- type EchoResponse
- func (*EchoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EchoResponse) GetMessage() string
- func (x *EchoResponse) GetMetadata() *Metadata
- func (*EchoResponse) ProtoMessage()
- func (x *EchoResponse) ProtoReflect() protoreflect.Message
- func (x *EchoResponse) Reset()
- func (x *EchoResponse) String() string
- type Metadata
- type MetadataValue
- type TestServiceClient
- type TestServiceServer
- type UnimplementedTestServiceServer
- type UnsafeTestServiceServer
Constants ¶
const (
TestService_Echo_FullMethodName = "/rerost.giro.v1.TestService/Echo"
)
Variables ¶
var File_e2etest_dummyserver_echo_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rerost.giro.v1.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _TestService_Echo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "e2etest/dummyserver/echo.proto", }
TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func NewHostsServiceServer ¶
func NewHostsServiceServer() hosts_pb.HostServiceServer
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
Types ¶
type EchoRequest ¶
type EchoRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*EchoRequest) Descriptor
deprecated
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (*EchoRequest) GetMessage ¶
func (x *EchoRequest) GetMessage() string
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) ProtoReflect ¶
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (*EchoRequest) Reset ¶
func (x *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (x *EchoRequest) String() string
type EchoResponse ¶
type EchoResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // https://godoc.org/google.golang.org/grpc/metadata#MD Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*EchoResponse) Descriptor
deprecated
func (*EchoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
func (*EchoResponse) GetMessage ¶
func (x *EchoResponse) GetMessage() string
func (*EchoResponse) GetMetadata ¶
func (x *EchoResponse) GetMetadata() *Metadata
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) ProtoReflect ¶
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (*EchoResponse) Reset ¶
func (x *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (x *EchoResponse) String() string
type Metadata ¶
type Metadata struct { Metadata map[string]*MetadataValue `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetMetadata ¶
func (x *Metadata) GetMetadata() map[string]*MetadataValue
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type MetadataValue ¶
type MetadataValue struct { Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*MetadataValue) Descriptor
deprecated
func (*MetadataValue) Descriptor() ([]byte, []int)
Deprecated: Use MetadataValue.ProtoReflect.Descriptor instead.
func (*MetadataValue) GetValue ¶
func (x *MetadataValue) GetValue() []string
func (*MetadataValue) ProtoMessage ¶
func (*MetadataValue) ProtoMessage()
func (*MetadataValue) ProtoReflect ¶
func (x *MetadataValue) ProtoReflect() protoreflect.Message
func (*MetadataValue) Reset ¶
func (x *MetadataValue) Reset()
func (*MetadataValue) String ¶
func (x *MetadataValue) String() string
type TestServiceClient ¶
type TestServiceClient interface {
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
}
TestServiceClient is the client API for TestService 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 NewTestServiceClient ¶
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface { Echo(context.Context, *EchoRequest) (*EchoResponse, error) // contains filtered or unexported methods }
TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility.
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct{}
UnimplementedTestServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTestServiceServer) Echo ¶
func (UnimplementedTestServiceServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error)
type UnsafeTestServiceServer ¶ added in v0.0.16
type UnsafeTestServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServiceServer will result in compilation errors.