Documentation ¶
Index ¶
- Variables
- func RegisterDemoServer(s grpc.ServiceRegistrar, srv DemoServer)
- type DemoClient
- type DemoServer
- type UnimplementedDemoServer
- type UnsafeDemoServer
- type UserErrorReason
- func (UserErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x UserErrorReason) Enum() *UserErrorReason
- func (UserErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserErrorReason) Number() protoreflect.EnumNumber
- func (x UserErrorReason) String() string
- func (UserErrorReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( UserErrorReason_name = map[int32]string{ 0: "GREETER_UNSPECIFIED", 1: "DEMO_NOT_FOUND", } UserErrorReason_value = map[string]int32{ "GREETER_UNSPECIFIED": 0, "DEMO_NOT_FOUND": 1, } )
Enum value maps for UserErrorReason.
var Demo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "demo.v1.Demo", HandlerType: (*DemoServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, Metadata: "demo/v1/demo.proto", }
Demo_ServiceDesc is the grpc.ServiceDesc for Demo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_demo_v1_demo_error_reason_proto protoreflect.FileDescriptor
var File_demo_v1_demo_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDemoServer ¶
func RegisterDemoServer(s grpc.ServiceRegistrar, srv DemoServer)
Types ¶
type DemoClient ¶
type DemoClient interface { }
DemoClient is the client API for Demo 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 NewDemoClient ¶
func NewDemoClient(cc grpc.ClientConnInterface) DemoClient
type DemoServer ¶
type DemoServer interface {
// contains filtered or unexported methods
}
DemoServer is the server API for Demo service. All implementations must embed UnimplementedDemoServer for forward compatibility
type UnimplementedDemoServer ¶
type UnimplementedDemoServer struct { }
UnimplementedDemoServer must be embedded to have forward compatible implementations.
type UnsafeDemoServer ¶
type UnsafeDemoServer interface {
// contains filtered or unexported methods
}
UnsafeDemoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DemoServer will result in compilation errors.
type UserErrorReason ¶
type UserErrorReason int32
const ( UserErrorReason_GREETER_UNSPECIFIED UserErrorReason = 0 UserErrorReason_DEMO_NOT_FOUND UserErrorReason = 1 )
func (UserErrorReason) Descriptor ¶
func (UserErrorReason) Descriptor() protoreflect.EnumDescriptor
func (UserErrorReason) Enum ¶
func (x UserErrorReason) Enum() *UserErrorReason
func (UserErrorReason) EnumDescriptor
deprecated
func (UserErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserErrorReason.Descriptor instead.
func (UserErrorReason) Number ¶
func (x UserErrorReason) Number() protoreflect.EnumNumber
func (UserErrorReason) String ¶
func (x UserErrorReason) String() string
func (UserErrorReason) Type ¶
func (UserErrorReason) Type() protoreflect.EnumType