birthday

package
v0.0.0-...-1e29305 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetBirthday

func (x *Person) GetBirthday() int64

func (*Person) GetName

func (x *Person) GetName() string

func (*Person) GetUserId

func (x *Person) GetUserId() string

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

func (x *Person) ProtoReflect() protoreflect.Message

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

type UnimplementedBirthdaysServer

type UnimplementedBirthdaysServer struct {
}

UnimplementedBirthdaysServer must be embedded to have forward compatible implementations.

func (UnimplementedBirthdaysServer) CreateBirthdayPersonBy

func (UnimplementedBirthdaysServer) DeleteBirthdayByID

func (UnimplementedBirthdaysServer) GetBirthdayPersonByID

func (UnimplementedBirthdaysServer) UpdateBirthdayByIdAndName

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL