Documentation ¶
Index ¶
- Variables
- func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)
- type AddReq
- type DeleteReq
- type EmptyReq
- type FindProfileReq
- type FindProfileResp
- func (*FindProfileResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindProfileResp) GetError() string
- func (x *FindProfileResp) GetProfile() *Profile
- func (x *FindProfileResp) GetStatus() int64
- func (*FindProfileResp) ProtoMessage()
- func (x *FindProfileResp) ProtoReflect() protoreflect.Message
- func (x *FindProfileResp) Reset()
- func (x *FindProfileResp) String() string
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetCreated() int64
- func (x *Profile) GetDescription() string
- func (x *Profile) GetFacebook() string
- func (x *Profile) GetId() uint64
- func (x *Profile) GetLastname() string
- func (x *Profile) GetLinkedin() string
- func (x *Profile) GetModified() int64
- func (x *Profile) GetName() string
- func (x *Profile) GetStudents() uint64
- func (x *Profile) GetTitle() string
- func (x *Profile) GetTwitter() string
- func (x *Profile) GetVotes() uint64
- func (x *Profile) GetWebsite() string
- func (x *Profile) GetYoutube() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type ProfileServiceClient
- type ProfileServiceServer
- type Resp
- type UnimplementedProfileServiceServer
- func (UnimplementedProfileServiceServer) AddProfile(context.Context, *AddReq) (*Resp, error)
- func (UnimplementedProfileServiceServer) FindProfile(context.Context, *FindProfileReq) (*FindProfileResp, error)
- func (UnimplementedProfileServiceServer) Remove(context.Context, *DeleteReq) (*Resp, error)
- func (UnimplementedProfileServiceServer) Update(context.Context, *UpdateReq) (*Resp, error)
- type UnsafeProfileServiceServer
- type UpdateReq
Constants ¶
This section is empty.
Variables ¶
var File_profile_proto protoreflect.FileDescriptor
var ProfileService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "profile.ProfileService", HandlerType: (*ProfileServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddProfile", Handler: _ProfileService_AddProfile_Handler, }, { MethodName: "Update", Handler: _ProfileService_Update_Handler, }, { MethodName: "Remove", Handler: _ProfileService_Remove_Handler, }, { MethodName: "FindProfile", Handler: _ProfileService_FindProfile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "profile.proto", }
ProfileService_ServiceDesc is the grpc.ServiceDesc for ProfileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProfileServiceServer ¶
func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)
Types ¶
type AddReq ¶
type AddReq struct { Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*AddReq) Descriptor
deprecated
func (*AddReq) GetProfile ¶
func (*AddReq) ProtoMessage ¶
func (*AddReq) ProtoMessage()
func (*AddReq) ProtoReflect ¶
func (x *AddReq) ProtoReflect() protoreflect.Message
type DeleteReq ¶
type DeleteReq struct { Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*DeleteReq) Descriptor
deprecated
func (*DeleteReq) ProtoMessage ¶
func (*DeleteReq) ProtoMessage()
func (*DeleteReq) ProtoReflect ¶
func (x *DeleteReq) ProtoReflect() protoreflect.Message
type EmptyReq ¶
type EmptyReq struct {
// contains filtered or unexported fields
}
func (*EmptyReq) Descriptor
deprecated
func (*EmptyReq) ProtoMessage ¶
func (*EmptyReq) ProtoMessage()
func (*EmptyReq) ProtoReflect ¶
func (x *EmptyReq) ProtoReflect() protoreflect.Message
type FindProfileReq ¶
type FindProfileReq struct { Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*FindProfileReq) Descriptor
deprecated
func (*FindProfileReq) Descriptor() ([]byte, []int)
Deprecated: Use FindProfileReq.ProtoReflect.Descriptor instead.
func (*FindProfileReq) GetUid ¶
func (x *FindProfileReq) GetUid() uint64
func (*FindProfileReq) ProtoMessage ¶
func (*FindProfileReq) ProtoMessage()
func (*FindProfileReq) ProtoReflect ¶
func (x *FindProfileReq) ProtoReflect() protoreflect.Message
func (*FindProfileReq) Reset ¶
func (x *FindProfileReq) Reset()
func (*FindProfileReq) String ¶
func (x *FindProfileReq) String() string
type FindProfileResp ¶
type FindProfileResp struct { Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Profile *Profile `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*FindProfileResp) Descriptor
deprecated
func (*FindProfileResp) Descriptor() ([]byte, []int)
Deprecated: Use FindProfileResp.ProtoReflect.Descriptor instead.
func (*FindProfileResp) GetError ¶
func (x *FindProfileResp) GetError() string
func (*FindProfileResp) GetProfile ¶
func (x *FindProfileResp) GetProfile() *Profile
func (*FindProfileResp) GetStatus ¶
func (x *FindProfileResp) GetStatus() int64
func (*FindProfileResp) ProtoMessage ¶
func (*FindProfileResp) ProtoMessage()
func (*FindProfileResp) ProtoReflect ¶
func (x *FindProfileResp) ProtoReflect() protoreflect.Message
func (*FindProfileResp) Reset ¶
func (x *FindProfileResp) Reset()
func (*FindProfileResp) String ¶
func (x *FindProfileResp) String() string
type Profile ¶
type Profile struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Lastname string `protobuf:"bytes,3,opt,name=lastname,proto3" json:"lastname,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Votes uint64 `protobuf:"varint,6,opt,name=votes,proto3" json:"votes,omitempty"` Students uint64 `protobuf:"varint,7,opt,name=students,proto3" json:"students,omitempty"` Website string `protobuf:"bytes,8,opt,name=website,proto3" json:"website,omitempty"` Youtube string `protobuf:"bytes,9,opt,name=youtube,proto3" json:"youtube,omitempty"` Linkedin string `protobuf:"bytes,10,opt,name=linkedin,proto3" json:"linkedin,omitempty"` Twitter string `protobuf:"bytes,11,opt,name=twitter,proto3" json:"twitter,omitempty"` Facebook string `protobuf:"bytes,12,opt,name=facebook,proto3" json:"facebook,omitempty"` Created int64 `protobuf:"varint,13,opt,name=created,proto3" json:"created,omitempty"` Modified int64 `protobuf:"varint,14,opt,name=modified,proto3" json:"modified,omitempty"` // contains filtered or unexported fields }
func (*Profile) Descriptor
deprecated
func (*Profile) GetCreated ¶
func (*Profile) GetDescription ¶
func (*Profile) GetFacebook ¶
func (*Profile) GetLastname ¶
func (*Profile) GetLinkedin ¶
func (*Profile) GetModified ¶
func (*Profile) GetStudents ¶
func (*Profile) GetTwitter ¶
func (*Profile) GetWebsite ¶
func (*Profile) GetYoutube ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
type ProfileServiceClient ¶
type ProfileServiceClient interface { AddProfile(ctx context.Context, in *AddReq, opts ...grpc.CallOption) (*Resp, error) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*Resp, error) Remove(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*Resp, error) FindProfile(ctx context.Context, in *FindProfileReq, opts ...grpc.CallOption) (*FindProfileResp, error) }
ProfileServiceClient is the client API for ProfileService 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 NewProfileServiceClient ¶
func NewProfileServiceClient(cc grpc.ClientConnInterface) ProfileServiceClient
type ProfileServiceServer ¶
type ProfileServiceServer interface { AddProfile(context.Context, *AddReq) (*Resp, error) Update(context.Context, *UpdateReq) (*Resp, error) Remove(context.Context, *DeleteReq) (*Resp, error) FindProfile(context.Context, *FindProfileReq) (*FindProfileResp, error) }
ProfileServiceServer is the server API for ProfileService service. All implementations should embed UnimplementedProfileServiceServer for forward compatibility
type Resp ¶
type Resp struct { Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Resp) Descriptor
deprecated
func (*Resp) ProtoMessage ¶
func (*Resp) ProtoMessage()
func (*Resp) ProtoReflect ¶
func (x *Resp) ProtoReflect() protoreflect.Message
type UnimplementedProfileServiceServer ¶
type UnimplementedProfileServiceServer struct { }
UnimplementedProfileServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedProfileServiceServer) AddProfile ¶
func (UnimplementedProfileServiceServer) FindProfile ¶
func (UnimplementedProfileServiceServer) FindProfile(context.Context, *FindProfileReq) (*FindProfileResp, error)
type UnsafeProfileServiceServer ¶
type UnsafeProfileServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProfileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServiceServer will result in compilation errors.
type UpdateReq ¶
type UpdateReq struct { Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Profile *Profile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*UpdateReq) Descriptor
deprecated
func (*UpdateReq) GetProfile ¶
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) ProtoReflect ¶
func (x *UpdateReq) ProtoReflect() protoreflect.Message