Documentation ¶
Index ¶
- Variables
- func RegisterHelloworldServer(s grpc.ServiceRegistrar, srv HelloworldServer)
- type CreateHelloworldReply
- type CreateHelloworldRequest
- type DeleteHelloworldReply
- type DeleteHelloworldRequest
- type GetHelloworldReply
- type GetHelloworldRequest
- type HelloworldClient
- type HelloworldServer
- type ListHelloworldReply
- type ListHelloworldRequest
- type UnimplementedHelloworldServer
- func (UnimplementedHelloworldServer) CreateHelloworld(context.Context, *CreateHelloworldRequest) (*CreateHelloworldReply, error)
- func (UnimplementedHelloworldServer) DeleteHelloworld(context.Context, *DeleteHelloworldRequest) (*DeleteHelloworldReply, error)
- func (UnimplementedHelloworldServer) GetHelloworld(context.Context, *GetHelloworldRequest) (*GetHelloworldReply, error)
- func (UnimplementedHelloworldServer) ListHelloworld(context.Context, *ListHelloworldRequest) (*ListHelloworldReply, error)
- func (UnimplementedHelloworldServer) UpdateHelloworld(context.Context, *UpdateHelloworldRequest) (*UpdateHelloworldReply, error)
- type UnsafeHelloworldServer
- type UpdateHelloworldReply
- type UpdateHelloworldRequest
Constants ¶
This section is empty.
Variables ¶
var File_api_helloworld_helloworld_proto protoreflect.FileDescriptor
var Helloworld_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.helloworld.Helloworld", HandlerType: (*HelloworldServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateHelloworld", Handler: _Helloworld_CreateHelloworld_Handler, }, { MethodName: "UpdateHelloworld", Handler: _Helloworld_UpdateHelloworld_Handler, }, { MethodName: "DeleteHelloworld", Handler: _Helloworld_DeleteHelloworld_Handler, }, { MethodName: "GetHelloworld", Handler: _Helloworld_GetHelloworld_Handler, }, { MethodName: "ListHelloworld", Handler: _Helloworld_ListHelloworld_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/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 CreateHelloworldReply ¶
type CreateHelloworldReply struct {
// contains filtered or unexported fields
}
func (*CreateHelloworldReply) Descriptor
deprecated
func (*CreateHelloworldReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateHelloworldReply.ProtoReflect.Descriptor instead.
func (*CreateHelloworldReply) ProtoMessage ¶
func (*CreateHelloworldReply) ProtoMessage()
func (*CreateHelloworldReply) ProtoReflect ¶
func (x *CreateHelloworldReply) ProtoReflect() protoreflect.Message
func (*CreateHelloworldReply) Reset ¶
func (x *CreateHelloworldReply) Reset()
func (*CreateHelloworldReply) String ¶
func (x *CreateHelloworldReply) String() string
type CreateHelloworldRequest ¶
type CreateHelloworldRequest struct {
// contains filtered or unexported fields
}
func (*CreateHelloworldRequest) Descriptor
deprecated
func (*CreateHelloworldRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateHelloworldRequest.ProtoReflect.Descriptor instead.
func (*CreateHelloworldRequest) ProtoMessage ¶
func (*CreateHelloworldRequest) ProtoMessage()
func (*CreateHelloworldRequest) ProtoReflect ¶
func (x *CreateHelloworldRequest) ProtoReflect() protoreflect.Message
func (*CreateHelloworldRequest) Reset ¶
func (x *CreateHelloworldRequest) Reset()
func (*CreateHelloworldRequest) String ¶
func (x *CreateHelloworldRequest) String() string
type DeleteHelloworldReply ¶
type DeleteHelloworldReply struct {
// contains filtered or unexported fields
}
func (*DeleteHelloworldReply) Descriptor
deprecated
func (*DeleteHelloworldReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteHelloworldReply.ProtoReflect.Descriptor instead.
func (*DeleteHelloworldReply) ProtoMessage ¶
func (*DeleteHelloworldReply) ProtoMessage()
func (*DeleteHelloworldReply) ProtoReflect ¶
func (x *DeleteHelloworldReply) ProtoReflect() protoreflect.Message
func (*DeleteHelloworldReply) Reset ¶
func (x *DeleteHelloworldReply) Reset()
func (*DeleteHelloworldReply) String ¶
func (x *DeleteHelloworldReply) String() string
type DeleteHelloworldRequest ¶
type DeleteHelloworldRequest struct {
// contains filtered or unexported fields
}
func (*DeleteHelloworldRequest) Descriptor
deprecated
func (*DeleteHelloworldRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteHelloworldRequest.ProtoReflect.Descriptor instead.
func (*DeleteHelloworldRequest) ProtoMessage ¶
func (*DeleteHelloworldRequest) ProtoMessage()
func (*DeleteHelloworldRequest) ProtoReflect ¶
func (x *DeleteHelloworldRequest) ProtoReflect() protoreflect.Message
func (*DeleteHelloworldRequest) Reset ¶
func (x *DeleteHelloworldRequest) Reset()
func (*DeleteHelloworldRequest) String ¶
func (x *DeleteHelloworldRequest) String() string
type GetHelloworldReply ¶
type GetHelloworldReply struct {
// contains filtered or unexported fields
}
func (*GetHelloworldReply) Descriptor
deprecated
func (*GetHelloworldReply) Descriptor() ([]byte, []int)
Deprecated: Use GetHelloworldReply.ProtoReflect.Descriptor instead.
func (*GetHelloworldReply) ProtoMessage ¶
func (*GetHelloworldReply) ProtoMessage()
func (*GetHelloworldReply) ProtoReflect ¶
func (x *GetHelloworldReply) ProtoReflect() protoreflect.Message
func (*GetHelloworldReply) Reset ¶
func (x *GetHelloworldReply) Reset()
func (*GetHelloworldReply) String ¶
func (x *GetHelloworldReply) String() string
type GetHelloworldRequest ¶
type GetHelloworldRequest struct {
// contains filtered or unexported fields
}
func (*GetHelloworldRequest) Descriptor
deprecated
func (*GetHelloworldRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHelloworldRequest.ProtoReflect.Descriptor instead.
func (*GetHelloworldRequest) ProtoMessage ¶
func (*GetHelloworldRequest) ProtoMessage()
func (*GetHelloworldRequest) ProtoReflect ¶
func (x *GetHelloworldRequest) ProtoReflect() protoreflect.Message
func (*GetHelloworldRequest) Reset ¶
func (x *GetHelloworldRequest) Reset()
func (*GetHelloworldRequest) String ¶
func (x *GetHelloworldRequest) String() string
type HelloworldClient ¶
type HelloworldClient interface { CreateHelloworld(ctx context.Context, in *CreateHelloworldRequest, opts ...grpc.CallOption) (*CreateHelloworldReply, error) UpdateHelloworld(ctx context.Context, in *UpdateHelloworldRequest, opts ...grpc.CallOption) (*UpdateHelloworldReply, error) DeleteHelloworld(ctx context.Context, in *DeleteHelloworldRequest, opts ...grpc.CallOption) (*DeleteHelloworldReply, error) GetHelloworld(ctx context.Context, in *GetHelloworldRequest, opts ...grpc.CallOption) (*GetHelloworldReply, error) ListHelloworld(ctx context.Context, in *ListHelloworldRequest, opts ...grpc.CallOption) (*ListHelloworldReply, 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 { CreateHelloworld(context.Context, *CreateHelloworldRequest) (*CreateHelloworldReply, error) UpdateHelloworld(context.Context, *UpdateHelloworldRequest) (*UpdateHelloworldReply, error) DeleteHelloworld(context.Context, *DeleteHelloworldRequest) (*DeleteHelloworldReply, error) GetHelloworld(context.Context, *GetHelloworldRequest) (*GetHelloworldReply, error) ListHelloworld(context.Context, *ListHelloworldRequest) (*ListHelloworldReply, error) // contains filtered or unexported methods }
HelloworldServer is the server API for Helloworld service. All implementations must embed UnimplementedHelloworldServer for forward compatibility
type ListHelloworldReply ¶
type ListHelloworldReply struct {
// contains filtered or unexported fields
}
func (*ListHelloworldReply) Descriptor
deprecated
func (*ListHelloworldReply) Descriptor() ([]byte, []int)
Deprecated: Use ListHelloworldReply.ProtoReflect.Descriptor instead.
func (*ListHelloworldReply) ProtoMessage ¶
func (*ListHelloworldReply) ProtoMessage()
func (*ListHelloworldReply) ProtoReflect ¶
func (x *ListHelloworldReply) ProtoReflect() protoreflect.Message
func (*ListHelloworldReply) Reset ¶
func (x *ListHelloworldReply) Reset()
func (*ListHelloworldReply) String ¶
func (x *ListHelloworldReply) String() string
type ListHelloworldRequest ¶
type ListHelloworldRequest struct {
// contains filtered or unexported fields
}
func (*ListHelloworldRequest) Descriptor
deprecated
func (*ListHelloworldRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListHelloworldRequest.ProtoReflect.Descriptor instead.
func (*ListHelloworldRequest) ProtoMessage ¶
func (*ListHelloworldRequest) ProtoMessage()
func (*ListHelloworldRequest) ProtoReflect ¶
func (x *ListHelloworldRequest) ProtoReflect() protoreflect.Message
func (*ListHelloworldRequest) Reset ¶
func (x *ListHelloworldRequest) Reset()
func (*ListHelloworldRequest) String ¶
func (x *ListHelloworldRequest) String() string
type UnimplementedHelloworldServer ¶
type UnimplementedHelloworldServer struct { }
UnimplementedHelloworldServer must be embedded to have forward compatible implementations.
func (UnimplementedHelloworldServer) CreateHelloworld ¶
func (UnimplementedHelloworldServer) CreateHelloworld(context.Context, *CreateHelloworldRequest) (*CreateHelloworldReply, error)
func (UnimplementedHelloworldServer) DeleteHelloworld ¶
func (UnimplementedHelloworldServer) DeleteHelloworld(context.Context, *DeleteHelloworldRequest) (*DeleteHelloworldReply, error)
func (UnimplementedHelloworldServer) GetHelloworld ¶
func (UnimplementedHelloworldServer) GetHelloworld(context.Context, *GetHelloworldRequest) (*GetHelloworldReply, error)
func (UnimplementedHelloworldServer) ListHelloworld ¶
func (UnimplementedHelloworldServer) ListHelloworld(context.Context, *ListHelloworldRequest) (*ListHelloworldReply, error)
func (UnimplementedHelloworldServer) UpdateHelloworld ¶
func (UnimplementedHelloworldServer) UpdateHelloworld(context.Context, *UpdateHelloworldRequest) (*UpdateHelloworldReply, 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.
type UpdateHelloworldReply ¶
type UpdateHelloworldReply struct {
// contains filtered or unexported fields
}
func (*UpdateHelloworldReply) Descriptor
deprecated
func (*UpdateHelloworldReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateHelloworldReply.ProtoReflect.Descriptor instead.
func (*UpdateHelloworldReply) ProtoMessage ¶
func (*UpdateHelloworldReply) ProtoMessage()
func (*UpdateHelloworldReply) ProtoReflect ¶
func (x *UpdateHelloworldReply) ProtoReflect() protoreflect.Message
func (*UpdateHelloworldReply) Reset ¶
func (x *UpdateHelloworldReply) Reset()
func (*UpdateHelloworldReply) String ¶
func (x *UpdateHelloworldReply) String() string
type UpdateHelloworldRequest ¶
type UpdateHelloworldRequest struct {
// contains filtered or unexported fields
}
func (*UpdateHelloworldRequest) Descriptor
deprecated
func (*UpdateHelloworldRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateHelloworldRequest.ProtoReflect.Descriptor instead.
func (*UpdateHelloworldRequest) ProtoMessage ¶
func (*UpdateHelloworldRequest) ProtoMessage()
func (*UpdateHelloworldRequest) ProtoReflect ¶
func (x *UpdateHelloworldRequest) ProtoReflect() protoreflect.Message
func (*UpdateHelloworldRequest) Reset ¶
func (x *UpdateHelloworldRequest) Reset()
func (*UpdateHelloworldRequest) String ¶
func (x *UpdateHelloworldRequest) String() string