Documentation ¶
Index ¶
- Variables
- func RegisterPurpleService(s grpc.ServiceRegistrar, srv *PurpleService)
- type GetMemberParam
- type HomePageParam
- type HomePageResponse
- func (*HomePageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HomePageResponse) GetId() int64
- func (x *HomePageResponse) GetName() string
- func (*HomePageResponse) ProtoMessage()
- func (x *HomePageResponse) ProtoReflect() protoreflect.Message
- func (x *HomePageResponse) Reset()
- func (x *HomePageResponse) String() string
- type MemberResponse
- func (*MemberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MemberResponse) GetId() int64
- func (x *MemberResponse) GetName() string
- func (*MemberResponse) ProtoMessage()
- func (x *MemberResponse) ProtoReflect() protoreflect.Message
- func (x *MemberResponse) Reset()
- func (x *MemberResponse) String() string
- type PurpleClient
- type PurpleService
- type UnstablePurpleService
Constants ¶
This section is empty.
Variables ¶
var File_purple_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPurpleService ¶
func RegisterPurpleService(s grpc.ServiceRegistrar, srv *PurpleService)
RegisterPurpleService registers a service implementation with a gRPC server.
Types ¶
type GetMemberParam ¶
type GetMemberParam struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetMemberParam) Descriptor
deprecated
func (*GetMemberParam) Descriptor() ([]byte, []int)
Deprecated: Use GetMemberParam.ProtoReflect.Descriptor instead.
func (*GetMemberParam) GetId ¶
func (x *GetMemberParam) GetId() int64
func (*GetMemberParam) ProtoMessage ¶
func (*GetMemberParam) ProtoMessage()
func (*GetMemberParam) ProtoReflect ¶
func (x *GetMemberParam) ProtoReflect() protoreflect.Message
func (*GetMemberParam) Reset ¶
func (x *GetMemberParam) Reset()
func (*GetMemberParam) String ¶
func (x *GetMemberParam) String() string
type HomePageParam ¶
type HomePageParam struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*HomePageParam) Descriptor
deprecated
func (*HomePageParam) Descriptor() ([]byte, []int)
Deprecated: Use HomePageParam.ProtoReflect.Descriptor instead.
func (*HomePageParam) GetId ¶
func (x *HomePageParam) GetId() int64
func (*HomePageParam) ProtoMessage ¶
func (*HomePageParam) ProtoMessage()
func (*HomePageParam) ProtoReflect ¶
func (x *HomePageParam) ProtoReflect() protoreflect.Message
func (*HomePageParam) Reset ¶
func (x *HomePageParam) Reset()
func (*HomePageParam) String ¶
func (x *HomePageParam) String() string
type HomePageResponse ¶
type HomePageResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*HomePageResponse) Descriptor
deprecated
func (*HomePageResponse) Descriptor() ([]byte, []int)
Deprecated: Use HomePageResponse.ProtoReflect.Descriptor instead.
func (*HomePageResponse) GetId ¶
func (x *HomePageResponse) GetId() int64
func (*HomePageResponse) GetName ¶
func (x *HomePageResponse) GetName() string
func (*HomePageResponse) ProtoMessage ¶
func (*HomePageResponse) ProtoMessage()
func (*HomePageResponse) ProtoReflect ¶
func (x *HomePageResponse) ProtoReflect() protoreflect.Message
func (*HomePageResponse) Reset ¶
func (x *HomePageResponse) Reset()
func (*HomePageResponse) String ¶
func (x *HomePageResponse) String() string
type MemberResponse ¶
type MemberResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*MemberResponse) Descriptor
deprecated
func (*MemberResponse) Descriptor() ([]byte, []int)
Deprecated: Use MemberResponse.ProtoReflect.Descriptor instead.
func (*MemberResponse) GetId ¶
func (x *MemberResponse) GetId() int64
func (*MemberResponse) GetName ¶
func (x *MemberResponse) GetName() string
func (*MemberResponse) ProtoMessage ¶
func (*MemberResponse) ProtoMessage()
func (*MemberResponse) ProtoReflect ¶
func (x *MemberResponse) ProtoReflect() protoreflect.Message
func (*MemberResponse) Reset ¶
func (x *MemberResponse) Reset()
func (*MemberResponse) String ¶
func (x *MemberResponse) String() string
type PurpleClient ¶
type PurpleClient interface { GetHomePage(ctx context.Context, in *HomePageParam, opts ...grpc.CallOption) (*HomePageResponse, error) GetMember(ctx context.Context, in *GetMemberParam, opts ...grpc.CallOption) (*MemberResponse, error) }
PurpleClient is the client API for Purple 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 NewPurpleClient ¶
func NewPurpleClient(cc grpc.ClientConnInterface) PurpleClient
type PurpleService ¶
type PurpleService struct { GetHomePage func(context.Context, *HomePageParam) (*HomePageResponse, error) GetMember func(context.Context, *GetMemberParam) (*MemberResponse, error) }
PurpleService is the service API for Purple service. Fields should be assigned to their respective handler implementations only before RegisterPurpleService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.
func NewPurpleService ¶
func NewPurpleService(s interface{}) *PurpleService
NewPurpleService creates a new PurpleService containing the implemented methods of the Purple service in s. Any unimplemented methods will result in the gRPC server returning an UNIMPLEMENTED status to the client. This includes situations where the method handler is misspelled or has the wrong signature. For this reason, this function should be used with great care and is not recommended to be used by most users.
type UnstablePurpleService ¶
type UnstablePurpleService interface { GetHomePage(context.Context, *HomePageParam) (*HomePageResponse, error) GetMember(context.Context, *GetMemberParam) (*MemberResponse, error) }
UnstablePurpleService is the service API for Purple service. New methods may be added to this interface if they are added to the service definition, which is not a backward-compatible change. For this reason, use of this type is not recommended.