Documentation
¶
Index ¶
- Variables
- func RegisterBirthdaysServer(s grpc.ServiceRegistrar, srv BirthdaysServer)
- type BirthdaysClient
- type BirthdaysServer
- type GetBirthdayRequest
- func (*GetBirthdayRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBirthdayRequest) GetPerson() *Person
- func (*GetBirthdayRequest) ProtoMessage()
- func (x *GetBirthdayRequest) ProtoReflect() protoreflect.Message
- func (x *GetBirthdayRequest) Reset()
- func (x *GetBirthdayRequest) String() string
- type GetBirthdayResponse
- func (*GetBirthdayResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBirthdayResponse) GetPerson() *Person
- func (*GetBirthdayResponse) ProtoMessage()
- func (x *GetBirthdayResponse) ProtoReflect() protoreflect.Message
- func (x *GetBirthdayResponse) Reset()
- func (x *GetBirthdayResponse) String() string
- type GetByIDRequest
- type GetIdResponse
- type Person
- func (*Person) Descriptor() ([]byte, []int)deprecated
- func (x *Person) GetBirthday() int64
- func (x *Person) GetName() string
- func (x *Person) GetUserId() string
- func (*Person) ProtoMessage()
- func (x *Person) ProtoReflect() protoreflect.Message
- func (x *Person) Reset()
- func (x *Person) String() string
- type UnimplementedBirthdaysServer
- func (UnimplementedBirthdaysServer) CreateBirthdayPersonBy(context.Context, *GetBirthdayRequest) (*GetBirthdayResponse, error)
- func (UnimplementedBirthdaysServer) DeleteBirthdayByID(context.Context, *GetByIDRequest) (*GetBirthdayResponse, error)
- func (UnimplementedBirthdaysServer) GetBirthdayPersonByID(context.Context, *GetByIDRequest) (*GetBirthdayResponse, error)
- func (UnimplementedBirthdaysServer) UpdateBirthdayByIdAndName(context.Context, *GetBirthdayRequest) (*GetBirthdayResponse, error)
- type UnsafeBirthdaysServer
Constants ¶
This section is empty.
Variables ¶
var Birthdays_ServiceDesc = grpc.ServiceDesc{ ServiceName: "birthday.Birthdays", HandlerType: (*BirthdaysServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateBirthdayPersonBy", Handler: _Birthdays_CreateBirthdayPersonBy_Handler, }, { MethodName: "GetBirthdayPersonByID", Handler: _Birthdays_GetBirthdayPersonByID_Handler, }, { MethodName: "UpdateBirthdayByIdAndName", Handler: _Birthdays_UpdateBirthdayByIdAndName_Handler, }, { MethodName: "DeleteBirthdayByID", Handler: _Birthdays_DeleteBirthdayByID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "birthday_service.proto", }
Birthdays_ServiceDesc is the grpc.ServiceDesc for Birthdays service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_birthday_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBirthdaysServer ¶
func RegisterBirthdaysServer(s grpc.ServiceRegistrar, srv BirthdaysServer)
Types ¶
type BirthdaysClient ¶
type BirthdaysClient interface { CreateBirthdayPersonBy(ctx context.Context, in *GetBirthdayRequest, opts ...grpc.CallOption) (*GetBirthdayResponse, error) GetBirthdayPersonByID(ctx context.Context, in *GetByIDRequest, opts ...grpc.CallOption) (*GetBirthdayResponse, error) UpdateBirthdayByIdAndName(ctx context.Context, in *GetBirthdayRequest, opts ...grpc.CallOption) (*GetBirthdayResponse, error) DeleteBirthdayByID(ctx context.Context, in *GetByIDRequest, opts ...grpc.CallOption) (*GetBirthdayResponse, error) }
BirthdaysClient is the client API for Birthdays 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 NewBirthdaysClient ¶
func NewBirthdaysClient(cc grpc.ClientConnInterface) BirthdaysClient
type BirthdaysServer ¶
type BirthdaysServer interface { CreateBirthdayPersonBy(context.Context, *GetBirthdayRequest) (*GetBirthdayResponse, error) GetBirthdayPersonByID(context.Context, *GetByIDRequest) (*GetBirthdayResponse, error) UpdateBirthdayByIdAndName(context.Context, *GetBirthdayRequest) (*GetBirthdayResponse, error) DeleteBirthdayByID(context.Context, *GetByIDRequest) (*GetBirthdayResponse, error) // contains filtered or unexported methods }
BirthdaysServer is the server API for Birthdays service. All implementations must embed UnimplementedBirthdaysServer for forward compatibility
type GetBirthdayRequest ¶
type GetBirthdayRequest struct { Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
func (*GetBirthdayRequest) Descriptor
deprecated
func (*GetBirthdayRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBirthdayRequest.ProtoReflect.Descriptor instead.
func (*GetBirthdayRequest) GetPerson ¶
func (x *GetBirthdayRequest) GetPerson() *Person
func (*GetBirthdayRequest) ProtoMessage ¶
func (*GetBirthdayRequest) ProtoMessage()
func (*GetBirthdayRequest) ProtoReflect ¶
func (x *GetBirthdayRequest) ProtoReflect() protoreflect.Message
func (*GetBirthdayRequest) Reset ¶
func (x *GetBirthdayRequest) Reset()
func (*GetBirthdayRequest) String ¶
func (x *GetBirthdayRequest) String() string
type GetBirthdayResponse ¶
type GetBirthdayResponse struct { Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
func (*GetBirthdayResponse) Descriptor
deprecated
func (*GetBirthdayResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBirthdayResponse.ProtoReflect.Descriptor instead.
func (*GetBirthdayResponse) GetPerson ¶
func (x *GetBirthdayResponse) GetPerson() *Person
func (*GetBirthdayResponse) ProtoMessage ¶
func (*GetBirthdayResponse) ProtoMessage()
func (*GetBirthdayResponse) ProtoReflect ¶
func (x *GetBirthdayResponse) ProtoReflect() protoreflect.Message
func (*GetBirthdayResponse) Reset ¶
func (x *GetBirthdayResponse) Reset()
func (*GetBirthdayResponse) String ¶
func (x *GetBirthdayResponse) String() string
type GetByIDRequest ¶
type GetByIDRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetByIDRequest) Descriptor
deprecated
func (*GetByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByIDRequest.ProtoReflect.Descriptor instead.
func (*GetByIDRequest) GetUserId ¶
func (x *GetByIDRequest) GetUserId() string
func (*GetByIDRequest) ProtoMessage ¶
func (*GetByIDRequest) ProtoMessage()
func (*GetByIDRequest) ProtoReflect ¶
func (x *GetByIDRequest) ProtoReflect() protoreflect.Message
func (*GetByIDRequest) Reset ¶
func (x *GetByIDRequest) Reset()
func (*GetByIDRequest) String ¶
func (x *GetByIDRequest) String() string
type GetIdResponse ¶
type GetIdResponse struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetIdResponse) Descriptor
deprecated
func (*GetIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetIdResponse.ProtoReflect.Descriptor instead.
func (*GetIdResponse) GetUserId ¶
func (x *GetIdResponse) GetUserId() string
func (*GetIdResponse) ProtoMessage ¶
func (*GetIdResponse) ProtoMessage()
func (*GetIdResponse) ProtoReflect ¶
func (x *GetIdResponse) ProtoReflect() protoreflect.Message
func (*GetIdResponse) Reset ¶
func (x *GetIdResponse) Reset()
func (*GetIdResponse) String ¶
func (x *GetIdResponse) String() string
type Person ¶
type Person struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Birthday int64 `protobuf:"varint,2,opt,name=birthday,proto3" json:"birthday,omitempty"` UserId string `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*Person) Descriptor
deprecated
func (*Person) GetBirthday ¶
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
type UnimplementedBirthdaysServer ¶
type UnimplementedBirthdaysServer struct { }
UnimplementedBirthdaysServer must be embedded to have forward compatible implementations.
func (UnimplementedBirthdaysServer) CreateBirthdayPersonBy ¶
func (UnimplementedBirthdaysServer) CreateBirthdayPersonBy(context.Context, *GetBirthdayRequest) (*GetBirthdayResponse, error)
func (UnimplementedBirthdaysServer) DeleteBirthdayByID ¶
func (UnimplementedBirthdaysServer) DeleteBirthdayByID(context.Context, *GetByIDRequest) (*GetBirthdayResponse, error)
func (UnimplementedBirthdaysServer) GetBirthdayPersonByID ¶
func (UnimplementedBirthdaysServer) GetBirthdayPersonByID(context.Context, *GetByIDRequest) (*GetBirthdayResponse, error)
func (UnimplementedBirthdaysServer) UpdateBirthdayByIdAndName ¶
func (UnimplementedBirthdaysServer) UpdateBirthdayByIdAndName(context.Context, *GetBirthdayRequest) (*GetBirthdayResponse, error)
type UnsafeBirthdaysServer ¶
type UnsafeBirthdaysServer interface {
// contains filtered or unexported methods
}
UnsafeBirthdaysServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BirthdaysServer will result in compilation errors.