Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type ID
- type IDs
- type InformationRequest
- type InformationResponse
- func (*InformationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InformationResponse) GetHost() string
- func (x *InformationResponse) GetIP() string
- func (*InformationResponse) ProtoMessage()
- func (x *InformationResponse) ProtoReflect() protoreflect.Message
- func (x *InformationResponse) Reset()
- func (x *InformationResponse) String() string
- type Region
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) GetRegionUsers(context.Context, *Region) (*Users, error)
- func (UnimplementedUserServiceServer) GetSingleUser(context.Context, *ID) (*User, error)
- func (UnimplementedUserServiceServer) NewUser(context.Context, *User) (*ID, error)
- func (UnimplementedUserServiceServer) NewUsers(context.Context, *Users) (*IDs, error)
- func (UnimplementedUserServiceServer) ServiceInformation(context.Context, *InformationRequest) (*InformationResponse, error)
- type UnsafeUserServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetDept() string
- func (x *User) GetEmail() string
- func (x *User) GetGender() string
- func (x *User) GetGrade() string
- func (x *User) GetID() int64
- func (x *User) GetLanguage() string
- func (x *User) GetName() string
- func (x *User) GetObtainedCredits() string
- func (x *User) GetPhone() string
- func (x *User) GetPreferTags() string
- func (x *User) GetRegion() string
- func (x *User) GetRole() string
- func (x *User) GetTimestamp() int64
- func (x *User) GetUID() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserRead
- func (*UserRead) Descriptor() ([]byte, []int)deprecated
- func (x *UserRead) GetAID() string
- func (x *UserRead) GetAgree() string
- func (x *UserRead) GetComment() string
- func (x *UserRead) GetCommentDetails() string
- func (x *UserRead) GetID() int64
- func (x *UserRead) GetRead() string
- func (x *UserRead) GetReadSeq() string
- func (x *UserRead) GetReadTime() string
- func (x *UserRead) GetShare() string
- func (x *UserRead) GetTimestamp() int64
- func (x *UserRead) GetUID() string
- func (*UserRead) ProtoMessage()
- func (x *UserRead) ProtoReflect() protoreflect.Message
- func (x *UserRead) Reset()
- func (x *UserRead) String() string
- type UserServiceClient
- type UserServiceServer
- type Users
Constants ¶
This section is empty.
Variables ¶
var File_pb_users_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type ID ¶
type ID struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*ID) Descriptor
deprecated
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) ProtoReflect ¶
func (x *ID) ProtoReflect() protoreflect.Message
type IDs ¶
type IDs struct { IDs []*ID `protobuf:"bytes,1,rep,name=IDs,proto3" json:"IDs,omitempty"` // contains filtered or unexported fields }
func (*IDs) Descriptor
deprecated
func (*IDs) ProtoMessage ¶
func (*IDs) ProtoMessage()
func (*IDs) ProtoReflect ¶
func (x *IDs) ProtoReflect() protoreflect.Message
type InformationRequest ¶
type InformationRequest struct {
// contains filtered or unexported fields
}
func (*InformationRequest) Descriptor
deprecated
func (*InformationRequest) Descriptor() ([]byte, []int)
Deprecated: Use InformationRequest.ProtoReflect.Descriptor instead.
func (*InformationRequest) ProtoMessage ¶
func (*InformationRequest) ProtoMessage()
func (*InformationRequest) ProtoReflect ¶
func (x *InformationRequest) ProtoReflect() protoreflect.Message
func (*InformationRequest) Reset ¶
func (x *InformationRequest) Reset()
func (*InformationRequest) String ¶
func (x *InformationRequest) String() string
type InformationResponse ¶
type InformationResponse struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` Host string `protobuf:"bytes,2,opt,name=Host,proto3" json:"Host,omitempty"` // contains filtered or unexported fields }
func (*InformationResponse) Descriptor
deprecated
func (*InformationResponse) Descriptor() ([]byte, []int)
Deprecated: Use InformationResponse.ProtoReflect.Descriptor instead.
func (*InformationResponse) GetHost ¶
func (x *InformationResponse) GetHost() string
func (*InformationResponse) GetIP ¶
func (x *InformationResponse) GetIP() string
func (*InformationResponse) ProtoMessage ¶
func (*InformationResponse) ProtoMessage()
func (*InformationResponse) ProtoReflect ¶
func (x *InformationResponse) ProtoReflect() protoreflect.Message
func (*InformationResponse) Reset ¶
func (x *InformationResponse) Reset()
func (*InformationResponse) String ¶
func (x *InformationResponse) String() string
type Region ¶
type Region struct { Region string `protobuf:"bytes,1,opt,name=Region,proto3" json:"Region,omitempty"` // contains filtered or unexported fields }
func (*Region) Descriptor
deprecated
func (*Region) ProtoMessage ¶
func (*Region) ProtoMessage()
func (*Region) ProtoReflect ¶
func (x *Region) ProtoReflect() protoreflect.Message
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) GetRegionUsers ¶
func (UnimplementedUserServiceServer) GetSingleUser ¶
func (UnimplementedUserServiceServer) ServiceInformation ¶
func (UnimplementedUserServiceServer) ServiceInformation(context.Context, *InformationRequest) (*InformationResponse, error)
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type User ¶
type User struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` UID string `protobuf:"bytes,3,opt,name=UID,proto3" json:"UID,omitempty"` Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"` Gender string `protobuf:"bytes,5,opt,name=Gender,proto3" json:"Gender,omitempty"` Email string `protobuf:"bytes,6,opt,name=Email,proto3" json:"Email,omitempty"` Phone string `protobuf:"bytes,7,opt,name=Phone,proto3" json:"Phone,omitempty"` Dept string `protobuf:"bytes,8,opt,name=Dept,proto3" json:"Dept,omitempty"` Grade string `protobuf:"bytes,9,opt,name=Grade,proto3" json:"Grade,omitempty"` Language string `protobuf:"bytes,10,opt,name=Language,proto3" json:"Language,omitempty"` Region string `protobuf:"bytes,11,opt,name=Region,proto3" json:"Region,omitempty"` Role string `protobuf:"bytes,12,opt,name=Role,proto3" json:"Role,omitempty"` PreferTags string `protobuf:"bytes,13,opt,name=PreferTags,proto3" json:"PreferTags,omitempty"` ObtainedCredits string `protobuf:"bytes,14,opt,name=ObtainedCredits,proto3" json:"ObtainedCredits,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetLanguage ¶
func (*User) GetObtainedCredits ¶
func (*User) GetPreferTags ¶
func (*User) GetTimestamp ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserRead ¶
type UserRead struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` UID string `protobuf:"bytes,3,opt,name=UID,proto3" json:"UID,omitempty"` AID string `protobuf:"bytes,4,opt,name=AID,proto3" json:"AID,omitempty"` Read string `protobuf:"bytes,5,opt,name=Read,proto3" json:"Read,omitempty"` ReadTime string `protobuf:"bytes,6,opt,name=ReadTime,proto3" json:"ReadTime,omitempty"` ReadSeq string `protobuf:"bytes,7,opt,name=ReadSeq,proto3" json:"ReadSeq,omitempty"` Agree string `protobuf:"bytes,8,opt,name=Agree,proto3" json:"Agree,omitempty"` Comment string `protobuf:"bytes,9,opt,name=Comment,proto3" json:"Comment,omitempty"` CommentDetails string `protobuf:"bytes,11,opt,name=CommentDetails,proto3" json:"CommentDetails,omitempty"` // contains filtered or unexported fields }
func (*UserRead) Descriptor
deprecated
func (*UserRead) GetComment ¶
func (*UserRead) GetCommentDetails ¶
func (*UserRead) GetReadSeq ¶
func (*UserRead) GetReadTime ¶
func (*UserRead) GetTimestamp ¶
func (*UserRead) ProtoMessage ¶
func (*UserRead) ProtoMessage()
func (*UserRead) ProtoReflect ¶
func (x *UserRead) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { ServiceInformation(ctx context.Context, in *InformationRequest, opts ...grpc.CallOption) (*InformationResponse, error) GetSingleUser(ctx context.Context, in *ID, opts ...grpc.CallOption) (*User, error) GetRegionUsers(ctx context.Context, in *Region, opts ...grpc.CallOption) (*Users, error) NewUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*ID, error) NewUsers(ctx context.Context, in *Users, opts ...grpc.CallOption) (*IDs, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { ServiceInformation(context.Context, *InformationRequest) (*InformationResponse, error) GetSingleUser(context.Context, *ID) (*User, error) GetRegionUsers(context.Context, *Region) (*Users, error) NewUser(context.Context, *User) (*ID, error) NewUsers(context.Context, *Users) (*IDs, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type Users ¶
type Users struct { Users []*User `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"` // contains filtered or unexported fields }
func (*Users) Descriptor
deprecated
func (*Users) ProtoMessage ¶
func (*Users) ProtoMessage()
func (*Users) ProtoReflect ¶
func (x *Users) ProtoReflect() protoreflect.Message