Documentation ¶
Index ¶
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- func RegisterImServiceServer(s *grpc.Server, srv ImServiceServer)
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type CurrentUserRequest
- func (*CurrentUserRequest) Descriptor() ([]byte, []int)
- func (m *CurrentUserRequest) GetToken() string
- func (*CurrentUserRequest) ProtoMessage()
- func (m *CurrentUserRequest) Reset()
- func (m *CurrentUserRequest) String() string
- func (m *CurrentUserRequest) XXX_DiscardUnknown()
- func (m *CurrentUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrentUserRequest) XXX_Merge(src proto.Message)
- func (m *CurrentUserRequest) XXX_Size() int
- func (m *CurrentUserRequest) XXX_Unmarshal(b []byte) error
- type DeleteFriendsRequest
- func (*DeleteFriendsRequest) Descriptor() ([]byte, []int)
- func (m *DeleteFriendsRequest) GetToken() string
- func (m *DeleteFriendsRequest) GetUserId() int32
- func (*DeleteFriendsRequest) ProtoMessage()
- func (m *DeleteFriendsRequest) Reset()
- func (m *DeleteFriendsRequest) String() string
- func (m *DeleteFriendsRequest) XXX_DiscardUnknown()
- func (m *DeleteFriendsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteFriendsRequest) XXX_Merge(src proto.Message)
- func (m *DeleteFriendsRequest) XXX_Size() int
- func (m *DeleteFriendsRequest) XXX_Unmarshal(b []byte) error
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)
- func (m *DeleteUserRequest) GetToken() string
- func (*DeleteUserRequest) ProtoMessage()
- func (m *DeleteUserRequest) Reset()
- func (m *DeleteUserRequest) String() string
- func (m *DeleteUserRequest) XXX_DiscardUnknown()
- func (m *DeleteUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteUserRequest) XXX_Merge(src proto.Message)
- func (m *DeleteUserRequest) XXX_Size() int
- func (m *DeleteUserRequest) XXX_Unmarshal(b []byte) error
- type GetMessagesRequest
- func (*GetMessagesRequest) Descriptor() ([]byte, []int)
- func (m *GetMessagesRequest) GetPageOrder() *PageOrder
- func (m *GetMessagesRequest) GetToken() string
- func (m *GetMessagesRequest) GetUserId() int32
- func (*GetMessagesRequest) ProtoMessage()
- func (m *GetMessagesRequest) Reset()
- func (m *GetMessagesRequest) String() string
- func (m *GetMessagesRequest) XXX_DiscardUnknown()
- func (m *GetMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetMessagesRequest) XXX_Merge(src proto.Message)
- func (m *GetMessagesRequest) XXX_Size() int
- func (m *GetMessagesRequest) XXX_Unmarshal(b []byte) error
- type ImServiceClient
- type ImServiceServer
- type InsertFriendsRequest
- func (*InsertFriendsRequest) Descriptor() ([]byte, []int)
- func (m *InsertFriendsRequest) GetToken() string
- func (m *InsertFriendsRequest) GetUserId() int32
- func (*InsertFriendsRequest) ProtoMessage()
- func (m *InsertFriendsRequest) Reset()
- func (m *InsertFriendsRequest) String() string
- func (m *InsertFriendsRequest) XXX_DiscardUnknown()
- func (m *InsertFriendsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InsertFriendsRequest) XXX_Merge(src proto.Message)
- func (m *InsertFriendsRequest) XXX_Size() int
- func (m *InsertFriendsRequest) XXX_Unmarshal(b []byte) error
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (m *LoginRequest) GetExpire() int64
- func (m *LoginRequest) GetPassword() string
- func (m *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) String() string
- func (m *LoginRequest) XXX_DiscardUnknown()
- func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginRequest) XXX_Merge(src proto.Message)
- func (m *LoginRequest) XXX_Size() int
- func (m *LoginRequest) XXX_Unmarshal(b []byte) error
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)
- func (m *LoginResponse) GetToken() string
- func (m *LoginResponse) GetUser() *UserResponse
- func (*LoginResponse) ProtoMessage()
- func (m *LoginResponse) Reset()
- func (m *LoginResponse) String() string
- func (m *LoginResponse) XXX_DiscardUnknown()
- func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginResponse) XXX_Merge(src proto.Message)
- func (m *LoginResponse) XXX_Size() int
- func (m *LoginResponse) XXX_Unmarshal(b []byte) error
- type LogoutRequest
- func (*LogoutRequest) Descriptor() ([]byte, []int)
- func (m *LogoutRequest) GetToken() string
- func (*LogoutRequest) ProtoMessage()
- func (m *LogoutRequest) Reset()
- func (m *LogoutRequest) String() string
- func (m *LogoutRequest) XXX_DiscardUnknown()
- func (m *LogoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogoutRequest) XXX_Merge(src proto.Message)
- func (m *LogoutRequest) XXX_Size() int
- func (m *LogoutRequest) XXX_Unmarshal(b []byte) error
- type MessageResponse
- func (*MessageResponse) Descriptor() ([]byte, []int)
- func (m *MessageResponse) GetContent() string
- func (m *MessageResponse) GetSendTime() *timestamp.Timestamp
- func (*MessageResponse) ProtoMessage()
- func (m *MessageResponse) Reset()
- func (m *MessageResponse) String() string
- func (m *MessageResponse) XXX_DiscardUnknown()
- func (m *MessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MessageResponse) XXX_Merge(src proto.Message)
- func (m *MessageResponse) XXX_Size() int
- func (m *MessageResponse) XXX_Unmarshal(b []byte) error
- type MessagesResponse
- func (*MessagesResponse) Descriptor() ([]byte, []int)
- func (m *MessagesResponse) GetCount() int32
- func (m *MessagesResponse) GetMessages() []*MessageResponse
- func (*MessagesResponse) ProtoMessage()
- func (m *MessagesResponse) Reset()
- func (m *MessagesResponse) String() string
- func (m *MessagesResponse) XXX_DiscardUnknown()
- func (m *MessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MessagesResponse) XXX_Merge(src proto.Message)
- func (m *MessagesResponse) XXX_Size() int
- func (m *MessagesResponse) XXX_Unmarshal(b []byte) error
- type NullResponse
- func (*NullResponse) Descriptor() ([]byte, []int)
- func (*NullResponse) ProtoMessage()
- func (m *NullResponse) Reset()
- func (m *NullResponse) String() string
- func (m *NullResponse) XXX_DiscardUnknown()
- func (m *NullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NullResponse) XXX_Merge(src proto.Message)
- func (m *NullResponse) XXX_Size() int
- func (m *NullResponse) XXX_Unmarshal(b []byte) error
- type Page
- func (*Page) Descriptor() ([]byte, []int)
- func (m *Page) GetLimit() int32
- func (m *Page) GetPage() int32
- func (*Page) ProtoMessage()
- func (m *Page) Reset()
- func (m *Page) String() string
- func (m *Page) XXX_DiscardUnknown()
- func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Page) XXX_Merge(src proto.Message)
- func (m *Page) XXX_Size() int
- func (m *Page) XXX_Unmarshal(b []byte) error
- type PageOrder
- func (*PageOrder) Descriptor() ([]byte, []int)
- func (m *PageOrder) GetLimit() int32
- func (m *PageOrder) GetOrder() string
- func (m *PageOrder) GetPage() int32
- func (*PageOrder) ProtoMessage()
- func (m *PageOrder) Reset()
- func (m *PageOrder) String() string
- func (m *PageOrder) XXX_DiscardUnknown()
- func (m *PageOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PageOrder) XXX_Merge(src proto.Message)
- func (m *PageOrder) XXX_Size() int
- func (m *PageOrder) XXX_Unmarshal(b []byte) error
- type QueryFriendsRequest
- func (*QueryFriendsRequest) Descriptor() ([]byte, []int)
- func (m *QueryFriendsRequest) GetPageOrder() *PageOrder
- func (m *QueryFriendsRequest) GetToken() string
- func (*QueryFriendsRequest) ProtoMessage()
- func (m *QueryFriendsRequest) Reset()
- func (m *QueryFriendsRequest) String() string
- func (m *QueryFriendsRequest) XXX_DiscardUnknown()
- func (m *QueryFriendsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFriendsRequest) XXX_Merge(src proto.Message)
- func (m *QueryFriendsRequest) XXX_Size() int
- func (m *QueryFriendsRequest) XXX_Unmarshal(b []byte) error
- type QueryUserRequest
- func (*QueryUserRequest) Descriptor() ([]byte, []int)
- func (m *QueryUserRequest) GetToken() string
- func (m *QueryUserRequest) GetUserId() int32
- func (*QueryUserRequest) ProtoMessage()
- func (m *QueryUserRequest) Reset()
- func (m *QueryUserRequest) String() string
- func (m *QueryUserRequest) XXX_DiscardUnknown()
- func (m *QueryUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserRequest) XXX_Merge(src proto.Message)
- func (m *QueryUserRequest) XXX_Size() int
- func (m *QueryUserRequest) XXX_Unmarshal(b []byte) error
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)
- func (m *RegisterRequest) GetPassword() string
- func (m *RegisterRequest) GetUsername() string
- func (*RegisterRequest) ProtoMessage()
- func (m *RegisterRequest) Reset()
- func (m *RegisterRequest) String() string
- func (m *RegisterRequest) XXX_DiscardUnknown()
- func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterRequest) XXX_Merge(src proto.Message)
- func (m *RegisterRequest) XXX_Size() int
- func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
- type SendMessageRequest
- func (*SendMessageRequest) Descriptor() ([]byte, []int)
- func (m *SendMessageRequest) GetContent() string
- func (m *SendMessageRequest) GetToUserId() int32
- func (m *SendMessageRequest) GetToken() string
- func (*SendMessageRequest) ProtoMessage()
- func (m *SendMessageRequest) Reset()
- func (m *SendMessageRequest) String() string
- func (m *SendMessageRequest) XXX_DiscardUnknown()
- func (m *SendMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMessageRequest) XXX_Merge(src proto.Message)
- func (m *SendMessageRequest) XXX_Size() int
- func (m *SendMessageRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedAuthServiceServer
- func (*UnimplementedAuthServiceServer) CurrentUser(ctx context.Context, req *CurrentUserRequest) (*UserResponse, error)
- func (*UnimplementedAuthServiceServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
- func (*UnimplementedAuthServiceServer) Logout(ctx context.Context, req *LogoutRequest) (*NullResponse, error)
- func (*UnimplementedAuthServiceServer) Register(ctx context.Context, req *RegisterRequest) (*UserResponse, error)
- func (*UnimplementedAuthServiceServer) UpdatePassword(ctx context.Context, req *UpdatePasswordRequest) (*NullResponse, error)
- type UnimplementedImServiceServer
- type UnimplementedUserServiceServer
- func (*UnimplementedUserServiceServer) Delete(ctx context.Context, req *DeleteUserRequest) (*NullResponse, error)
- func (*UnimplementedUserServiceServer) DeleteFriend(ctx context.Context, req *DeleteFriendsRequest) (*NullResponse, error)
- func (*UnimplementedUserServiceServer) InsertFriend(ctx context.Context, req *InsertFriendsRequest) (*NullResponse, error)
- func (*UnimplementedUserServiceServer) Query(ctx context.Context, req *QueryUserRequest) (*UserResponse, error)
- func (*UnimplementedUserServiceServer) QueryFriends(ctx context.Context, req *QueryFriendsRequest) (*UsersResponse, error)
- func (*UnimplementedUserServiceServer) Update(ctx context.Context, req *UpdateUserRequest) (*UserResponse, error)
- type UpdatePasswordRequest
- func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
- func (m *UpdatePasswordRequest) GetPassword() string
- func (m *UpdatePasswordRequest) GetToken() string
- func (*UpdatePasswordRequest) ProtoMessage()
- func (m *UpdatePasswordRequest) Reset()
- func (m *UpdatePasswordRequest) String() string
- func (m *UpdatePasswordRequest) XXX_DiscardUnknown()
- func (m *UpdatePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdatePasswordRequest) XXX_Merge(src proto.Message)
- func (m *UpdatePasswordRequest) XXX_Size() int
- func (m *UpdatePasswordRequest) XXX_Unmarshal(b []byte) error
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)
- func (m *UpdateUserRequest) GetToken() string
- func (m *UpdateUserRequest) GetUsername() string
- func (*UpdateUserRequest) ProtoMessage()
- func (m *UpdateUserRequest) Reset()
- func (m *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) XXX_DiscardUnknown()
- func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateUserRequest) XXX_Merge(src proto.Message)
- func (m *UpdateUserRequest) XXX_Size() int
- func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)
- func (m *UserResponse) GetUserId() int32
- func (m *UserResponse) GetUsername() string
- func (*UserResponse) ProtoMessage()
- func (m *UserResponse) Reset()
- func (m *UserResponse) String() string
- func (m *UserResponse) XXX_DiscardUnknown()
- func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserResponse) XXX_Merge(src proto.Message)
- func (m *UserResponse) XXX_Size() int
- func (m *UserResponse) XXX_Unmarshal(b []byte) error
- type UserServiceClient
- type UserServiceServer
- type UsersResponse
- func (*UsersResponse) Descriptor() ([]byte, []int)
- func (m *UsersResponse) GetCount() int32
- func (m *UsersResponse) GetUsers() []*UserResponse
- func (*UsersResponse) ProtoMessage()
- func (m *UsersResponse) Reset()
- func (m *UsersResponse) String() string
- func (m *UsersResponse) XXX_DiscardUnknown()
- func (m *UsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UsersResponse) XXX_Merge(src proto.Message)
- func (m *UsersResponse) XXX_Size() int
- func (m *UsersResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
func RegisterImServiceServer ¶
func RegisterImServiceServer(s *grpc.Server, srv ImServiceServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*UserResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) CurrentUser(ctx context.Context, in *CurrentUserRequest, opts ...grpc.CallOption) (*UserResponse, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*NullResponse, error) UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*NullResponse, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Register(context.Context, *RegisterRequest) (*UserResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) CurrentUser(context.Context, *CurrentUserRequest) (*UserResponse, error) Logout(context.Context, *LogoutRequest) (*NullResponse, error) UpdatePassword(context.Context, *UpdatePasswordRequest) (*NullResponse, error) }
AuthServiceServer is the server API for AuthService service.
type CurrentUserRequest ¶
type CurrentUserRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CurrentUserRequest) Descriptor ¶
func (*CurrentUserRequest) Descriptor() ([]byte, []int)
func (*CurrentUserRequest) GetToken ¶
func (m *CurrentUserRequest) GetToken() string
func (*CurrentUserRequest) ProtoMessage ¶
func (*CurrentUserRequest) ProtoMessage()
func (*CurrentUserRequest) Reset ¶
func (m *CurrentUserRequest) Reset()
func (*CurrentUserRequest) String ¶
func (m *CurrentUserRequest) String() string
func (*CurrentUserRequest) XXX_DiscardUnknown ¶
func (m *CurrentUserRequest) XXX_DiscardUnknown()
func (*CurrentUserRequest) XXX_Marshal ¶
func (m *CurrentUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrentUserRequest) XXX_Merge ¶
func (m *CurrentUserRequest) XXX_Merge(src proto.Message)
func (*CurrentUserRequest) XXX_Size ¶
func (m *CurrentUserRequest) XXX_Size() int
func (*CurrentUserRequest) XXX_Unmarshal ¶
func (m *CurrentUserRequest) XXX_Unmarshal(b []byte) error
type DeleteFriendsRequest ¶
type DeleteFriendsRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteFriendsRequest) Descriptor ¶
func (*DeleteFriendsRequest) Descriptor() ([]byte, []int)
func (*DeleteFriendsRequest) GetToken ¶
func (m *DeleteFriendsRequest) GetToken() string
func (*DeleteFriendsRequest) GetUserId ¶
func (m *DeleteFriendsRequest) GetUserId() int32
func (*DeleteFriendsRequest) ProtoMessage ¶
func (*DeleteFriendsRequest) ProtoMessage()
func (*DeleteFriendsRequest) Reset ¶
func (m *DeleteFriendsRequest) Reset()
func (*DeleteFriendsRequest) String ¶
func (m *DeleteFriendsRequest) String() string
func (*DeleteFriendsRequest) XXX_DiscardUnknown ¶
func (m *DeleteFriendsRequest) XXX_DiscardUnknown()
func (*DeleteFriendsRequest) XXX_Marshal ¶
func (m *DeleteFriendsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteFriendsRequest) XXX_Merge ¶
func (m *DeleteFriendsRequest) XXX_Merge(src proto.Message)
func (*DeleteFriendsRequest) XXX_Size ¶
func (m *DeleteFriendsRequest) XXX_Size() int
func (*DeleteFriendsRequest) XXX_Unmarshal ¶
func (m *DeleteFriendsRequest) XXX_Unmarshal(b []byte) error
type DeleteUserRequest ¶
type DeleteUserRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteUserRequest) Descriptor ¶
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
func (*DeleteUserRequest) GetToken ¶
func (m *DeleteUserRequest) GetToken() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) Reset ¶
func (m *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (m *DeleteUserRequest) String() string
func (*DeleteUserRequest) XXX_DiscardUnknown ¶
func (m *DeleteUserRequest) XXX_DiscardUnknown()
func (*DeleteUserRequest) XXX_Marshal ¶
func (m *DeleteUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteUserRequest) XXX_Merge ¶
func (m *DeleteUserRequest) XXX_Merge(src proto.Message)
func (*DeleteUserRequest) XXX_Size ¶
func (m *DeleteUserRequest) XXX_Size() int
func (*DeleteUserRequest) XXX_Unmarshal ¶
func (m *DeleteUserRequest) XXX_Unmarshal(b []byte) error
type GetMessagesRequest ¶
type GetMessagesRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` PageOrder *PageOrder `protobuf:"bytes,3,opt,name=page_order,json=pageOrder,proto3" json:"page_order,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetMessagesRequest) Descriptor ¶
func (*GetMessagesRequest) Descriptor() ([]byte, []int)
func (*GetMessagesRequest) GetPageOrder ¶
func (m *GetMessagesRequest) GetPageOrder() *PageOrder
func (*GetMessagesRequest) GetToken ¶
func (m *GetMessagesRequest) GetToken() string
func (*GetMessagesRequest) GetUserId ¶
func (m *GetMessagesRequest) GetUserId() int32
func (*GetMessagesRequest) ProtoMessage ¶
func (*GetMessagesRequest) ProtoMessage()
func (*GetMessagesRequest) Reset ¶
func (m *GetMessagesRequest) Reset()
func (*GetMessagesRequest) String ¶
func (m *GetMessagesRequest) String() string
func (*GetMessagesRequest) XXX_DiscardUnknown ¶
func (m *GetMessagesRequest) XXX_DiscardUnknown()
func (*GetMessagesRequest) XXX_Marshal ¶
func (m *GetMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetMessagesRequest) XXX_Merge ¶
func (m *GetMessagesRequest) XXX_Merge(src proto.Message)
func (*GetMessagesRequest) XXX_Size ¶
func (m *GetMessagesRequest) XXX_Size() int
func (*GetMessagesRequest) XXX_Unmarshal ¶
func (m *GetMessagesRequest) XXX_Unmarshal(b []byte) error
type ImServiceClient ¶
type ImServiceClient interface { SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*NullResponse, error) GetMessages(ctx context.Context, in *GetMessagesRequest, opts ...grpc.CallOption) (*MessagesResponse, error) }
ImServiceClient is the client API for ImService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewImServiceClient ¶
func NewImServiceClient(cc *grpc.ClientConn) ImServiceClient
type ImServiceServer ¶
type ImServiceServer interface { SendMessage(context.Context, *SendMessageRequest) (*NullResponse, error) GetMessages(context.Context, *GetMessagesRequest) (*MessagesResponse, error) }
ImServiceServer is the server API for ImService service.
type InsertFriendsRequest ¶
type InsertFriendsRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InsertFriendsRequest) Descriptor ¶
func (*InsertFriendsRequest) Descriptor() ([]byte, []int)
func (*InsertFriendsRequest) GetToken ¶
func (m *InsertFriendsRequest) GetToken() string
func (*InsertFriendsRequest) GetUserId ¶
func (m *InsertFriendsRequest) GetUserId() int32
func (*InsertFriendsRequest) ProtoMessage ¶
func (*InsertFriendsRequest) ProtoMessage()
func (*InsertFriendsRequest) Reset ¶
func (m *InsertFriendsRequest) Reset()
func (*InsertFriendsRequest) String ¶
func (m *InsertFriendsRequest) String() string
func (*InsertFriendsRequest) XXX_DiscardUnknown ¶
func (m *InsertFriendsRequest) XXX_DiscardUnknown()
func (*InsertFriendsRequest) XXX_Marshal ¶
func (m *InsertFriendsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InsertFriendsRequest) XXX_Merge ¶
func (m *InsertFriendsRequest) XXX_Merge(src proto.Message)
func (*InsertFriendsRequest) XXX_Size ¶
func (m *InsertFriendsRequest) XXX_Size() int
func (*InsertFriendsRequest) XXX_Unmarshal ¶
func (m *InsertFriendsRequest) XXX_Unmarshal(b []byte) error
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Expire int64 `protobuf:"varint,3,opt,name=expire,proto3" json:"expire,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetExpire ¶
func (m *LoginRequest) GetExpire() int64
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (m *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
func (*LoginRequest) XXX_DiscardUnknown ¶
func (m *LoginRequest) XXX_DiscardUnknown()
func (*LoginRequest) XXX_Marshal ¶
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginRequest) XXX_Merge ¶
func (m *LoginRequest) XXX_Merge(src proto.Message)
func (*LoginRequest) XXX_Size ¶
func (m *LoginRequest) XXX_Size() int
func (*LoginRequest) XXX_Unmarshal ¶
func (m *LoginRequest) XXX_Unmarshal(b []byte) error
type LoginResponse ¶
type LoginResponse struct { User *UserResponse `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetToken ¶
func (m *LoginResponse) GetToken() string
func (*LoginResponse) GetUser ¶
func (m *LoginResponse) GetUser() *UserResponse
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) Reset ¶
func (m *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (m *LoginResponse) String() string
func (*LoginResponse) XXX_DiscardUnknown ¶
func (m *LoginResponse) XXX_DiscardUnknown()
func (*LoginResponse) XXX_Marshal ¶
func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginResponse) XXX_Merge ¶
func (m *LoginResponse) XXX_Merge(src proto.Message)
func (*LoginResponse) XXX_Size ¶
func (m *LoginResponse) XXX_Size() int
func (*LoginResponse) XXX_Unmarshal ¶
func (m *LoginResponse) XXX_Unmarshal(b []byte) error
type LogoutRequest ¶
type LogoutRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogoutRequest) Descriptor ¶
func (*LogoutRequest) Descriptor() ([]byte, []int)
func (*LogoutRequest) GetToken ¶
func (m *LogoutRequest) GetToken() string
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) Reset ¶
func (m *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (m *LogoutRequest) String() string
func (*LogoutRequest) XXX_DiscardUnknown ¶
func (m *LogoutRequest) XXX_DiscardUnknown()
func (*LogoutRequest) XXX_Marshal ¶
func (m *LogoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogoutRequest) XXX_Merge ¶
func (m *LogoutRequest) XXX_Merge(src proto.Message)
func (*LogoutRequest) XXX_Size ¶
func (m *LogoutRequest) XXX_Size() int
func (*LogoutRequest) XXX_Unmarshal ¶
func (m *LogoutRequest) XXX_Unmarshal(b []byte) error
type MessageResponse ¶
type MessageResponse struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` SendTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=sendTime,proto3" json:"sendTime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MessageResponse) Descriptor ¶
func (*MessageResponse) Descriptor() ([]byte, []int)
func (*MessageResponse) GetContent ¶
func (m *MessageResponse) GetContent() string
func (*MessageResponse) GetSendTime ¶
func (m *MessageResponse) GetSendTime() *timestamp.Timestamp
func (*MessageResponse) ProtoMessage ¶
func (*MessageResponse) ProtoMessage()
func (*MessageResponse) Reset ¶
func (m *MessageResponse) Reset()
func (*MessageResponse) String ¶
func (m *MessageResponse) String() string
func (*MessageResponse) XXX_DiscardUnknown ¶
func (m *MessageResponse) XXX_DiscardUnknown()
func (*MessageResponse) XXX_Marshal ¶
func (m *MessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MessageResponse) XXX_Merge ¶
func (m *MessageResponse) XXX_Merge(src proto.Message)
func (*MessageResponse) XXX_Size ¶
func (m *MessageResponse) XXX_Size() int
func (*MessageResponse) XXX_Unmarshal ¶
func (m *MessageResponse) XXX_Unmarshal(b []byte) error
type MessagesResponse ¶
type MessagesResponse struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Messages []*MessageResponse `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MessagesResponse) Descriptor ¶
func (*MessagesResponse) Descriptor() ([]byte, []int)
func (*MessagesResponse) GetCount ¶
func (m *MessagesResponse) GetCount() int32
func (*MessagesResponse) GetMessages ¶
func (m *MessagesResponse) GetMessages() []*MessageResponse
func (*MessagesResponse) ProtoMessage ¶
func (*MessagesResponse) ProtoMessage()
func (*MessagesResponse) Reset ¶
func (m *MessagesResponse) Reset()
func (*MessagesResponse) String ¶
func (m *MessagesResponse) String() string
func (*MessagesResponse) XXX_DiscardUnknown ¶
func (m *MessagesResponse) XXX_DiscardUnknown()
func (*MessagesResponse) XXX_Marshal ¶
func (m *MessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MessagesResponse) XXX_Merge ¶
func (m *MessagesResponse) XXX_Merge(src proto.Message)
func (*MessagesResponse) XXX_Size ¶
func (m *MessagesResponse) XXX_Size() int
func (*MessagesResponse) XXX_Unmarshal ¶
func (m *MessagesResponse) XXX_Unmarshal(b []byte) error
type NullResponse ¶
type NullResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NullResponse) Descriptor ¶
func (*NullResponse) Descriptor() ([]byte, []int)
func (*NullResponse) ProtoMessage ¶
func (*NullResponse) ProtoMessage()
func (*NullResponse) Reset ¶
func (m *NullResponse) Reset()
func (*NullResponse) String ¶
func (m *NullResponse) String() string
func (*NullResponse) XXX_DiscardUnknown ¶
func (m *NullResponse) XXX_DiscardUnknown()
func (*NullResponse) XXX_Marshal ¶
func (m *NullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NullResponse) XXX_Merge ¶
func (m *NullResponse) XXX_Merge(src proto.Message)
func (*NullResponse) XXX_Size ¶
func (m *NullResponse) XXX_Size() int
func (*NullResponse) XXX_Unmarshal ¶
func (m *NullResponse) XXX_Unmarshal(b []byte) error
type Page ¶
type Page struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Page) Descriptor ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) XXX_DiscardUnknown ¶
func (m *Page) XXX_DiscardUnknown()
func (*Page) XXX_Unmarshal ¶
type PageOrder ¶
type PageOrder struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Order string `protobuf:"bytes,3,opt,name=order,proto3" json:"order,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PageOrder) Descriptor ¶
func (*PageOrder) ProtoMessage ¶
func (*PageOrder) ProtoMessage()
func (*PageOrder) XXX_DiscardUnknown ¶
func (m *PageOrder) XXX_DiscardUnknown()
func (*PageOrder) XXX_Marshal ¶
func (*PageOrder) XXX_Unmarshal ¶
type QueryFriendsRequest ¶
type QueryFriendsRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` PageOrder *PageOrder `protobuf:"bytes,3,opt,name=page_order,json=pageOrder,proto3" json:"page_order,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryFriendsRequest) Descriptor ¶
func (*QueryFriendsRequest) Descriptor() ([]byte, []int)
func (*QueryFriendsRequest) GetPageOrder ¶
func (m *QueryFriendsRequest) GetPageOrder() *PageOrder
func (*QueryFriendsRequest) GetToken ¶
func (m *QueryFriendsRequest) GetToken() string
func (*QueryFriendsRequest) ProtoMessage ¶
func (*QueryFriendsRequest) ProtoMessage()
func (*QueryFriendsRequest) Reset ¶
func (m *QueryFriendsRequest) Reset()
func (*QueryFriendsRequest) String ¶
func (m *QueryFriendsRequest) String() string
func (*QueryFriendsRequest) XXX_DiscardUnknown ¶
func (m *QueryFriendsRequest) XXX_DiscardUnknown()
func (*QueryFriendsRequest) XXX_Marshal ¶
func (m *QueryFriendsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFriendsRequest) XXX_Merge ¶
func (m *QueryFriendsRequest) XXX_Merge(src proto.Message)
func (*QueryFriendsRequest) XXX_Size ¶
func (m *QueryFriendsRequest) XXX_Size() int
func (*QueryFriendsRequest) XXX_Unmarshal ¶
func (m *QueryFriendsRequest) XXX_Unmarshal(b []byte) error
type QueryUserRequest ¶
type QueryUserRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryUserRequest) Descriptor ¶
func (*QueryUserRequest) Descriptor() ([]byte, []int)
func (*QueryUserRequest) GetToken ¶
func (m *QueryUserRequest) GetToken() string
func (*QueryUserRequest) GetUserId ¶
func (m *QueryUserRequest) GetUserId() int32
func (*QueryUserRequest) ProtoMessage ¶
func (*QueryUserRequest) ProtoMessage()
func (*QueryUserRequest) Reset ¶
func (m *QueryUserRequest) Reset()
func (*QueryUserRequest) String ¶
func (m *QueryUserRequest) String() string
func (*QueryUserRequest) XXX_DiscardUnknown ¶
func (m *QueryUserRequest) XXX_DiscardUnknown()
func (*QueryUserRequest) XXX_Marshal ¶
func (m *QueryUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserRequest) XXX_Merge ¶
func (m *QueryUserRequest) XXX_Merge(src proto.Message)
func (*QueryUserRequest) XXX_Size ¶
func (m *QueryUserRequest) XXX_Size() int
func (*QueryUserRequest) XXX_Unmarshal ¶
func (m *QueryUserRequest) XXX_Unmarshal(b []byte) error
type RegisterRequest ¶
type RegisterRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterRequest) Descriptor ¶
func (*RegisterRequest) Descriptor() ([]byte, []int)
func (*RegisterRequest) GetPassword ¶
func (m *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (m *RegisterRequest) GetUsername() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) Reset ¶
func (m *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (m *RegisterRequest) String() string
func (*RegisterRequest) XXX_DiscardUnknown ¶
func (m *RegisterRequest) XXX_DiscardUnknown()
func (*RegisterRequest) XXX_Marshal ¶
func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterRequest) XXX_Merge ¶
func (m *RegisterRequest) XXX_Merge(src proto.Message)
func (*RegisterRequest) XXX_Size ¶
func (m *RegisterRequest) XXX_Size() int
func (*RegisterRequest) XXX_Unmarshal ¶
func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
type SendMessageRequest ¶
type SendMessageRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ToUserId int32 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendMessageRequest) Descriptor ¶
func (*SendMessageRequest) Descriptor() ([]byte, []int)
func (*SendMessageRequest) GetContent ¶
func (m *SendMessageRequest) GetContent() string
func (*SendMessageRequest) GetToUserId ¶
func (m *SendMessageRequest) GetToUserId() int32
func (*SendMessageRequest) GetToken ¶
func (m *SendMessageRequest) GetToken() string
func (*SendMessageRequest) ProtoMessage ¶
func (*SendMessageRequest) ProtoMessage()
func (*SendMessageRequest) Reset ¶
func (m *SendMessageRequest) Reset()
func (*SendMessageRequest) String ¶
func (m *SendMessageRequest) String() string
func (*SendMessageRequest) XXX_DiscardUnknown ¶
func (m *SendMessageRequest) XXX_DiscardUnknown()
func (*SendMessageRequest) XXX_Marshal ¶
func (m *SendMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMessageRequest) XXX_Merge ¶
func (m *SendMessageRequest) XXX_Merge(src proto.Message)
func (*SendMessageRequest) XXX_Size ¶
func (m *SendMessageRequest) XXX_Size() int
func (*SendMessageRequest) XXX_Unmarshal ¶
func (m *SendMessageRequest) XXX_Unmarshal(b []byte) error
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServiceServer) CurrentUser ¶
func (*UnimplementedAuthServiceServer) CurrentUser(ctx context.Context, req *CurrentUserRequest) (*UserResponse, error)
func (*UnimplementedAuthServiceServer) Login ¶
func (*UnimplementedAuthServiceServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
func (*UnimplementedAuthServiceServer) Logout ¶
func (*UnimplementedAuthServiceServer) Logout(ctx context.Context, req *LogoutRequest) (*NullResponse, error)
func (*UnimplementedAuthServiceServer) Register ¶
func (*UnimplementedAuthServiceServer) Register(ctx context.Context, req *RegisterRequest) (*UserResponse, error)
func (*UnimplementedAuthServiceServer) UpdatePassword ¶
func (*UnimplementedAuthServiceServer) UpdatePassword(ctx context.Context, req *UpdatePasswordRequest) (*NullResponse, error)
type UnimplementedImServiceServer ¶
type UnimplementedImServiceServer struct { }
UnimplementedImServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedImServiceServer) GetMessages ¶
func (*UnimplementedImServiceServer) GetMessages(ctx context.Context, req *GetMessagesRequest) (*MessagesResponse, error)
func (*UnimplementedImServiceServer) SendMessage ¶
func (*UnimplementedImServiceServer) SendMessage(ctx context.Context, req *SendMessageRequest) (*NullResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) Delete ¶
func (*UnimplementedUserServiceServer) Delete(ctx context.Context, req *DeleteUserRequest) (*NullResponse, error)
func (*UnimplementedUserServiceServer) DeleteFriend ¶
func (*UnimplementedUserServiceServer) DeleteFriend(ctx context.Context, req *DeleteFriendsRequest) (*NullResponse, error)
func (*UnimplementedUserServiceServer) InsertFriend ¶
func (*UnimplementedUserServiceServer) InsertFriend(ctx context.Context, req *InsertFriendsRequest) (*NullResponse, error)
func (*UnimplementedUserServiceServer) Query ¶
func (*UnimplementedUserServiceServer) Query(ctx context.Context, req *QueryUserRequest) (*UserResponse, error)
func (*UnimplementedUserServiceServer) QueryFriends ¶
func (*UnimplementedUserServiceServer) QueryFriends(ctx context.Context, req *QueryFriendsRequest) (*UsersResponse, error)
func (*UnimplementedUserServiceServer) Update ¶
func (*UnimplementedUserServiceServer) Update(ctx context.Context, req *UpdateUserRequest) (*UserResponse, error)
type UpdatePasswordRequest ¶
type UpdatePasswordRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdatePasswordRequest) Descriptor ¶
func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
func (*UpdatePasswordRequest) GetPassword ¶
func (m *UpdatePasswordRequest) GetPassword() string
func (*UpdatePasswordRequest) GetToken ¶
func (m *UpdatePasswordRequest) GetToken() string
func (*UpdatePasswordRequest) ProtoMessage ¶
func (*UpdatePasswordRequest) ProtoMessage()
func (*UpdatePasswordRequest) Reset ¶
func (m *UpdatePasswordRequest) Reset()
func (*UpdatePasswordRequest) String ¶
func (m *UpdatePasswordRequest) String() string
func (*UpdatePasswordRequest) XXX_DiscardUnknown ¶
func (m *UpdatePasswordRequest) XXX_DiscardUnknown()
func (*UpdatePasswordRequest) XXX_Marshal ¶
func (m *UpdatePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdatePasswordRequest) XXX_Merge ¶
func (m *UpdatePasswordRequest) XXX_Merge(src proto.Message)
func (*UpdatePasswordRequest) XXX_Size ¶
func (m *UpdatePasswordRequest) XXX_Size() int
func (*UpdatePasswordRequest) XXX_Unmarshal ¶
func (m *UpdatePasswordRequest) XXX_Unmarshal(b []byte) error
type UpdateUserRequest ¶
type UpdateUserRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateUserRequest) Descriptor ¶
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
func (*UpdateUserRequest) GetToken ¶
func (m *UpdateUserRequest) GetToken() string
func (*UpdateUserRequest) GetUsername ¶
func (m *UpdateUserRequest) GetUsername() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) Reset ¶
func (m *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (m *UpdateUserRequest) String() string
func (*UpdateUserRequest) XXX_DiscardUnknown ¶
func (m *UpdateUserRequest) XXX_DiscardUnknown()
func (*UpdateUserRequest) XXX_Marshal ¶
func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateUserRequest) XXX_Merge ¶
func (m *UpdateUserRequest) XXX_Merge(src proto.Message)
func (*UpdateUserRequest) XXX_Size ¶
func (m *UpdateUserRequest) XXX_Size() int
func (*UpdateUserRequest) XXX_Unmarshal ¶
func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
type UserResponse ¶
type UserResponse struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserResponse) Descriptor ¶
func (*UserResponse) Descriptor() ([]byte, []int)
func (*UserResponse) GetUserId ¶
func (m *UserResponse) GetUserId() int32
func (*UserResponse) GetUsername ¶
func (m *UserResponse) GetUsername() string
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) Reset ¶
func (m *UserResponse) Reset()
func (*UserResponse) String ¶
func (m *UserResponse) String() string
func (*UserResponse) XXX_DiscardUnknown ¶
func (m *UserResponse) XXX_DiscardUnknown()
func (*UserResponse) XXX_Marshal ¶
func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserResponse) XXX_Merge ¶
func (m *UserResponse) XXX_Merge(src proto.Message)
func (*UserResponse) XXX_Size ¶
func (m *UserResponse) XXX_Size() int
func (*UserResponse) XXX_Unmarshal ¶
func (m *UserResponse) XXX_Unmarshal(b []byte) error
type UserServiceClient ¶
type UserServiceClient interface { Query(ctx context.Context, in *QueryUserRequest, opts ...grpc.CallOption) (*UserResponse, error) Update(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UserResponse, error) Delete(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*NullResponse, error) QueryFriends(ctx context.Context, in *QueryFriendsRequest, opts ...grpc.CallOption) (*UsersResponse, error) InsertFriend(ctx context.Context, in *InsertFriendsRequest, opts ...grpc.CallOption) (*NullResponse, error) DeleteFriend(ctx context.Context, in *DeleteFriendsRequest, opts ...grpc.CallOption) (*NullResponse, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { Query(context.Context, *QueryUserRequest) (*UserResponse, error) Update(context.Context, *UpdateUserRequest) (*UserResponse, error) Delete(context.Context, *DeleteUserRequest) (*NullResponse, error) QueryFriends(context.Context, *QueryFriendsRequest) (*UsersResponse, error) InsertFriend(context.Context, *InsertFriendsRequest) (*NullResponse, error) DeleteFriend(context.Context, *DeleteFriendsRequest) (*NullResponse, error) }
UserServiceServer is the server API for UserService service.
type UsersResponse ¶
type UsersResponse struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Users []*UserResponse `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UsersResponse) Descriptor ¶
func (*UsersResponse) Descriptor() ([]byte, []int)
func (*UsersResponse) GetCount ¶
func (m *UsersResponse) GetCount() int32
func (*UsersResponse) GetUsers ¶
func (m *UsersResponse) GetUsers() []*UserResponse
func (*UsersResponse) ProtoMessage ¶
func (*UsersResponse) ProtoMessage()
func (*UsersResponse) Reset ¶
func (m *UsersResponse) Reset()
func (*UsersResponse) String ¶
func (m *UsersResponse) String() string
func (*UsersResponse) XXX_DiscardUnknown ¶
func (m *UsersResponse) XXX_DiscardUnknown()
func (*UsersResponse) XXX_Marshal ¶
func (m *UsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UsersResponse) XXX_Merge ¶
func (m *UsersResponse) XXX_Merge(src proto.Message)
func (*UsersResponse) XXX_Size ¶
func (m *UsersResponse) XXX_Size() int
func (*UsersResponse) XXX_Unmarshal ¶
func (m *UsersResponse) XXX_Unmarshal(b []byte) error