Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterHelloWorldServer(s grpc.ServiceRegistrar, srv HelloWorldServer)
- type CommonNameRequest
- type CommonNameResponse
- func (*CommonNameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommonNameResponse) GetCommonName() string
- func (*CommonNameResponse) ProtoMessage()
- func (x *CommonNameResponse) ProtoReflect() protoreflect.Message
- func (x *CommonNameResponse) Reset()
- func (x *CommonNameResponse) String() string
- type HelloWorldClient
- type HelloWorldServer
- type PanicRequest
- type PanicResponse
- type PingRequest
- type PongResponse
- type Service
- type UnimplementedHelloWorldServer
- func (UnimplementedHelloWorldServer) CommonName(context.Context, *CommonNameRequest) (*CommonNameResponse, error)
- func (UnimplementedHelloWorldServer) Panic(context.Context, *PanicRequest) (*PanicResponse, error)
- func (UnimplementedHelloWorldServer) Ping(context.Context, *PingRequest) (*PongResponse, error)
- type UnsafeHelloWorldServer
Constants ¶
const ( HelloWorld_Ping_FullMethodName = "/github.unsafesystems.cachaca.HelloWorld/Ping" HelloWorld_CommonName_FullMethodName = "/github.unsafesystems.cachaca.HelloWorld/CommonName" HelloWorld_Panic_FullMethodName = "/github.unsafesystems.cachaca.HelloWorld/Panic" )
Variables ¶
var File_internal_helloworld_helloworld_proto protoreflect.FileDescriptor
var HelloWorld_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.unsafesystems.cachaca.HelloWorld", HandlerType: (*HelloWorldServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _HelloWorld_Ping_Handler, }, { MethodName: "CommonName", Handler: _HelloWorld_CommonName_Handler, }, { MethodName: "Panic", Handler: _HelloWorld_Panic_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/helloworld/helloworld.proto", }
HelloWorld_ServiceDesc is the grpc.ServiceDesc for HelloWorld service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHelloWorldServer ¶
func RegisterHelloWorldServer(s grpc.ServiceRegistrar, srv HelloWorldServer)
Types ¶
type CommonNameRequest ¶
type CommonNameRequest struct {
// contains filtered or unexported fields
}
func (*CommonNameRequest) Descriptor
deprecated
func (*CommonNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommonNameRequest.ProtoReflect.Descriptor instead.
func (*CommonNameRequest) ProtoMessage ¶
func (*CommonNameRequest) ProtoMessage()
func (*CommonNameRequest) ProtoReflect ¶
func (x *CommonNameRequest) ProtoReflect() protoreflect.Message
func (*CommonNameRequest) Reset ¶
func (x *CommonNameRequest) Reset()
func (*CommonNameRequest) String ¶
func (x *CommonNameRequest) String() string
type CommonNameResponse ¶
type CommonNameResponse struct { CommonName string `protobuf:"bytes,1,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` // contains filtered or unexported fields }
func (*CommonNameResponse) Descriptor
deprecated
func (*CommonNameResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommonNameResponse.ProtoReflect.Descriptor instead.
func (*CommonNameResponse) GetCommonName ¶
func (x *CommonNameResponse) GetCommonName() string
func (*CommonNameResponse) ProtoMessage ¶
func (*CommonNameResponse) ProtoMessage()
func (*CommonNameResponse) ProtoReflect ¶
func (x *CommonNameResponse) ProtoReflect() protoreflect.Message
func (*CommonNameResponse) Reset ¶
func (x *CommonNameResponse) Reset()
func (*CommonNameResponse) String ¶
func (x *CommonNameResponse) String() string
type HelloWorldClient ¶
type HelloWorldClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PongResponse, error) CommonName(ctx context.Context, in *CommonNameRequest, opts ...grpc.CallOption) (*CommonNameResponse, error) Panic(ctx context.Context, in *PanicRequest, opts ...grpc.CallOption) (*PanicResponse, error) }
HelloWorldClient is the client API for HelloWorld 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 NewHelloWorldClient ¶
func NewHelloWorldClient(cc grpc.ClientConnInterface) HelloWorldClient
type HelloWorldServer ¶
type HelloWorldServer interface { Ping(context.Context, *PingRequest) (*PongResponse, error) CommonName(context.Context, *CommonNameRequest) (*CommonNameResponse, error) Panic(context.Context, *PanicRequest) (*PanicResponse, error) // contains filtered or unexported methods }
HelloWorldServer is the server API for HelloWorld service. All implementations must embed UnimplementedHelloWorldServer for forward compatibility
type PanicRequest ¶
type PanicRequest struct {
// contains filtered or unexported fields
}
func (*PanicRequest) Descriptor
deprecated
func (*PanicRequest) Descriptor() ([]byte, []int)
Deprecated: Use PanicRequest.ProtoReflect.Descriptor instead.
func (*PanicRequest) ProtoMessage ¶
func (*PanicRequest) ProtoMessage()
func (*PanicRequest) ProtoReflect ¶
func (x *PanicRequest) ProtoReflect() protoreflect.Message
func (*PanicRequest) Reset ¶
func (x *PanicRequest) Reset()
func (*PanicRequest) String ¶
func (x *PanicRequest) String() string
type PanicResponse ¶
type PanicResponse struct {
// contains filtered or unexported fields
}
func (*PanicResponse) Descriptor
deprecated
func (*PanicResponse) Descriptor() ([]byte, []int)
Deprecated: Use PanicResponse.ProtoReflect.Descriptor instead.
func (*PanicResponse) ProtoMessage ¶
func (*PanicResponse) ProtoMessage()
func (*PanicResponse) ProtoReflect ¶
func (x *PanicResponse) ProtoReflect() protoreflect.Message
func (*PanicResponse) Reset ¶
func (x *PanicResponse) Reset()
func (*PanicResponse) String ¶
func (x *PanicResponse) String() string
type PingRequest ¶
type PingRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) GetMessage ¶
func (x *PingRequest) GetMessage() string
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PongResponse ¶
type PongResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PongResponse) Descriptor
deprecated
func (*PongResponse) Descriptor() ([]byte, []int)
Deprecated: Use PongResponse.ProtoReflect.Descriptor instead.
func (*PongResponse) GetMessage ¶
func (x *PongResponse) GetMessage() string
func (*PongResponse) ProtoMessage ¶
func (*PongResponse) ProtoMessage()
func (*PongResponse) ProtoReflect ¶
func (x *PongResponse) ProtoReflect() protoreflect.Message
func (*PongResponse) Reset ¶
func (x *PongResponse) Reset()
func (*PongResponse) String ¶
func (x *PongResponse) String() string
type Service ¶
type Service struct {
UnimplementedHelloWorldServer
}
func (*Service) CommonName ¶
func (s *Service) CommonName(ctx context.Context, _ *CommonNameRequest) (*CommonNameResponse, error)
func (*Service) Panic ¶
func (s *Service) Panic(_ context.Context, _ *PanicRequest) (*PanicResponse, error)
func (*Service) Ping ¶
func (s *Service) Ping(_ context.Context, _ *PingRequest) (*PongResponse, error)
type UnimplementedHelloWorldServer ¶
type UnimplementedHelloWorldServer struct { }
UnimplementedHelloWorldServer must be embedded to have forward compatible implementations.
func (UnimplementedHelloWorldServer) CommonName ¶
func (UnimplementedHelloWorldServer) CommonName(context.Context, *CommonNameRequest) (*CommonNameResponse, error)
func (UnimplementedHelloWorldServer) Panic ¶
func (UnimplementedHelloWorldServer) Panic(context.Context, *PanicRequest) (*PanicResponse, error)
func (UnimplementedHelloWorldServer) Ping ¶
func (UnimplementedHelloWorldServer) Ping(context.Context, *PingRequest) (*PongResponse, error)
type UnsafeHelloWorldServer ¶
type UnsafeHelloWorldServer interface {
// contains filtered or unexported methods
}
UnsafeHelloWorldServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HelloWorldServer will result in compilation errors.