pb

package
v0.0.0-...-845d9a5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetID

func (x *ID) GetID() int64

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

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

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

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

Deprecated: Use IDs.ProtoReflect.Descriptor instead.

func (*IDs) GetIDs

func (x *IDs) GetIDs() []*ID

func (*IDs) ProtoMessage

func (*IDs) ProtoMessage()

func (*IDs) ProtoReflect

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

func (*IDs) Reset

func (x *IDs) Reset()

func (*IDs) String

func (x *IDs) String() string

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

Deprecated: Use Region.ProtoReflect.Descriptor instead.

func (*Region) GetRegion

func (x *Region) GetRegion() string

func (*Region) ProtoMessage

func (*Region) ProtoMessage()

func (*Region) ProtoReflect

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

func (*Region) Reset

func (x *Region) Reset()

func (*Region) String

func (x *Region) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) GetRegionUsers

func (UnimplementedUserServiceServer) GetSingleUser

func (UnimplementedUserServiceServer) NewUser

func (UnimplementedUserServiceServer) NewUsers

func (UnimplementedUserServiceServer) ServiceInformation

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDept

func (x *User) GetDept() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetGender

func (x *User) GetGender() string

func (*User) GetGrade

func (x *User) GetGrade() string

func (*User) GetID

func (x *User) GetID() int64

func (*User) GetLanguage

func (x *User) GetLanguage() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetObtainedCredits

func (x *User) GetObtainedCredits() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetPreferTags

func (x *User) GetPreferTags() string

func (*User) GetRegion

func (x *User) GetRegion() string

func (*User) GetRole

func (x *User) GetRole() string

func (*User) GetTimestamp

func (x *User) GetTimestamp() int64

func (*User) GetUID

func (x *User) GetUID() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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"`
	Share          string `protobuf:"bytes,10,opt,name=Share,proto3" json:"Share,omitempty"`
	CommentDetails string `protobuf:"bytes,11,opt,name=CommentDetails,proto3" json:"CommentDetails,omitempty"`
	// contains filtered or unexported fields
}

func (*UserRead) Descriptor deprecated

func (*UserRead) Descriptor() ([]byte, []int)

Deprecated: Use UserRead.ProtoReflect.Descriptor instead.

func (*UserRead) GetAID

func (x *UserRead) GetAID() string

func (*UserRead) GetAgree

func (x *UserRead) GetAgree() string

func (*UserRead) GetComment

func (x *UserRead) GetComment() string

func (*UserRead) GetCommentDetails

func (x *UserRead) GetCommentDetails() string

func (*UserRead) GetID

func (x *UserRead) GetID() int64

func (*UserRead) GetRead

func (x *UserRead) GetRead() string

func (*UserRead) GetReadSeq

func (x *UserRead) GetReadSeq() string

func (*UserRead) GetReadTime

func (x *UserRead) GetReadTime() string

func (*UserRead) GetShare

func (x *UserRead) GetShare() string

func (*UserRead) GetTimestamp

func (x *UserRead) GetTimestamp() int64

func (*UserRead) GetUID

func (x *UserRead) GetUID() string

func (*UserRead) ProtoMessage

func (*UserRead) ProtoMessage()

func (*UserRead) ProtoReflect

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

func (*UserRead) Reset

func (x *UserRead) Reset()

func (*UserRead) String

func (x *UserRead) String() string

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.

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

Deprecated: Use Users.ProtoReflect.Descriptor instead.

func (*Users) GetUsers

func (x *Users) GetUsers() []*User

func (*Users) ProtoMessage

func (*Users) ProtoMessage()

func (*Users) ProtoReflect

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

func (*Users) Reset

func (x *Users) Reset()

func (*Users) String

func (x *Users) String() string

Jump to

Keyboard shortcuts

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