Documentation ¶
Index ¶
- func RegisterArticlesvcServer(s *grpc.Server, srv ArticlesvcServer)
- func RegisterUsersvcServer(s *grpc.Server, srv UsersvcServer)
- type ArticlesvcClient
- type ArticlesvcServer
- type CategoryResponse
- func (*CategoryResponse) Descriptor() ([]byte, []int)
- func (m *CategoryResponse) GetId() int32
- func (m *CategoryResponse) GetName() string
- func (*CategoryResponse) ProtoMessage()
- func (m *CategoryResponse) Reset()
- func (m *CategoryResponse) String() string
- func (m *CategoryResponse) XXX_DiscardUnknown()
- func (m *CategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CategoryResponse) XXX_Merge(src proto.Message)
- func (m *CategoryResponse) XXX_Size() int
- func (m *CategoryResponse) XXX_Unmarshal(b []byte) error
- type GetCategoriesRequest
- func (*GetCategoriesRequest) Descriptor() ([]byte, []int)
- func (*GetCategoriesRequest) ProtoMessage()
- func (m *GetCategoriesRequest) Reset()
- func (m *GetCategoriesRequest) String() string
- func (m *GetCategoriesRequest) XXX_DiscardUnknown()
- func (m *GetCategoriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCategoriesRequest) XXX_Merge(src proto.Message)
- func (m *GetCategoriesRequest) XXX_Size() int
- func (m *GetCategoriesRequest) XXX_Unmarshal(b []byte) error
- type GetCategoriesResponse
- func (*GetCategoriesResponse) Descriptor() ([]byte, []int)
- func (m *GetCategoriesResponse) GetCount() int64
- func (m *GetCategoriesResponse) GetData() []*CategoryResponse
- func (*GetCategoriesResponse) ProtoMessage()
- func (m *GetCategoriesResponse) Reset()
- func (m *GetCategoriesResponse) String() string
- func (m *GetCategoriesResponse) XXX_DiscardUnknown()
- func (m *GetCategoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCategoriesResponse) XXX_Merge(src proto.Message)
- func (m *GetCategoriesResponse) XXX_Size() int
- func (m *GetCategoriesResponse) XXX_Unmarshal(b []byte) error
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)
- func (m *GetUserRequest) GetUid() string
- func (*GetUserRequest) ProtoMessage()
- func (m *GetUserRequest) Reset()
- func (m *GetUserRequest) String() string
- func (m *GetUserRequest) XXX_DiscardUnknown()
- func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserRequest) XXX_Merge(src proto.Message)
- func (m *GetUserRequest) XXX_Size() int
- func (m *GetUserRequest) XXX_Unmarshal(b []byte) error
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)
- func (m *GetUserResponse) GetUid() string
- func (*GetUserResponse) ProtoMessage()
- func (m *GetUserResponse) Reset()
- func (m *GetUserResponse) String() string
- func (m *GetUserResponse) XXX_DiscardUnknown()
- func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserResponse) XXX_Merge(src proto.Message)
- func (m *GetUserResponse) XXX_Size() int
- func (m *GetUserResponse) XXX_Unmarshal(b []byte) error
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- 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) GetAvatar() string
- func (m *LoginResponse) GetCookie() string
- func (m *LoginResponse) GetCreatedTime() string
- func (m *LoginResponse) GetId() int32
- func (m *LoginResponse) GetRecentTime() string
- func (m *LoginResponse) GetRoleID() int32
- func (m *LoginResponse) GetUpdatedTime() string
- func (m *LoginResponse) GetUsername() string
- 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) GetSid() 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 LogoutResponse
- func (*LogoutResponse) Descriptor() ([]byte, []int)
- func (*LogoutResponse) ProtoMessage()
- func (m *LogoutResponse) Reset()
- func (m *LogoutResponse) String() string
- func (m *LogoutResponse) XXX_DiscardUnknown()
- func (m *LogoutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogoutResponse) XXX_Merge(src proto.Message)
- func (m *LogoutResponse) XXX_Size() int
- func (m *LogoutResponse) XXX_Unmarshal(b []byte) error
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)
- func (m *RegisterRequest) GetCodeID() int32
- 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 RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)
- func (*RegisterResponse) ProtoMessage()
- func (m *RegisterResponse) Reset()
- func (m *RegisterResponse) String() string
- func (m *RegisterResponse) XXX_DiscardUnknown()
- func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterResponse) XXX_Merge(src proto.Message)
- func (m *RegisterResponse) XXX_Size() int
- func (m *RegisterResponse) XXX_Unmarshal(b []byte) error
- type SendCodeRequest
- func (*SendCodeRequest) Descriptor() ([]byte, []int)
- func (*SendCodeRequest) ProtoMessage()
- func (m *SendCodeRequest) Reset()
- func (m *SendCodeRequest) String() string
- func (m *SendCodeRequest) XXX_DiscardUnknown()
- func (m *SendCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendCodeRequest) XXX_Merge(src proto.Message)
- func (m *SendCodeRequest) XXX_Size() int
- func (m *SendCodeRequest) XXX_Unmarshal(b []byte) error
- type SendCodeResponse
- func (*SendCodeResponse) Descriptor() ([]byte, []int)
- func (m *SendCodeResponse) GetCodeID() string
- func (*SendCodeResponse) ProtoMessage()
- func (m *SendCodeResponse) Reset()
- func (m *SendCodeResponse) String() string
- func (m *SendCodeResponse) XXX_DiscardUnknown()
- func (m *SendCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendCodeResponse) XXX_Merge(src proto.Message)
- func (m *SendCodeResponse) XXX_Size() int
- func (m *SendCodeResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedArticlesvcServer
- type UnimplementedUsersvcServer
- func (*UnimplementedUsersvcServer) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error)
- func (*UnimplementedUsersvcServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
- func (*UnimplementedUsersvcServer) Logout(ctx context.Context, req *LogoutRequest) (*LogoutResponse, error)
- func (*UnimplementedUsersvcServer) Register(ctx context.Context, req *RegisterRequest) (*RegisterResponse, error)
- func (*UnimplementedUsersvcServer) SendCode(ctx context.Context, req *SendCodeRequest) (*SendCodeResponse, error)
- func (*UnimplementedUsersvcServer) UserList(ctx context.Context, req *UserListRequest) (*UserListResponse, error)
- type UserListRequest
- func (*UserListRequest) Descriptor() ([]byte, []int)
- func (m *UserListRequest) GetPage() int32
- func (m *UserListRequest) GetSize() int32
- func (*UserListRequest) ProtoMessage()
- func (m *UserListRequest) Reset()
- func (m *UserListRequest) String() string
- func (m *UserListRequest) XXX_DiscardUnknown()
- func (m *UserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserListRequest) XXX_Merge(src proto.Message)
- func (m *UserListRequest) XXX_Size() int
- func (m *UserListRequest) XXX_Unmarshal(b []byte) error
- type UserListResponse
- func (*UserListResponse) Descriptor() ([]byte, []int)
- func (m *UserListResponse) GetCount() int64
- func (m *UserListResponse) GetData() []*UserResponse
- func (*UserListResponse) ProtoMessage()
- func (m *UserListResponse) Reset()
- func (m *UserListResponse) String() string
- func (m *UserListResponse) XXX_DiscardUnknown()
- func (m *UserListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserListResponse) XXX_Merge(src proto.Message)
- func (m *UserListResponse) XXX_Size() int
- func (m *UserListResponse) XXX_Unmarshal(b []byte) error
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)
- func (m *UserResponse) GetAvatar() string
- func (m *UserResponse) GetCreatedTime() string
- func (m *UserResponse) GetId() int32
- func (m *UserResponse) GetRecentTime() string
- func (m *UserResponse) GetRoleID() int32
- func (m *UserResponse) GetUpdatedTime() string
- 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 UsersvcClient
- type UsersvcServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterArticlesvcServer ¶
func RegisterArticlesvcServer(s *grpc.Server, srv ArticlesvcServer)
func RegisterUsersvcServer ¶
func RegisterUsersvcServer(s *grpc.Server, srv UsersvcServer)
Types ¶
type ArticlesvcClient ¶
type ArticlesvcClient interface {
GetCategories(ctx context.Context, in *GetCategoriesRequest, opts ...grpc.CallOption) (*GetCategoriesResponse, error)
}
ArticlesvcClient is the client API for Articlesvc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewArticlesvcClient ¶
func NewArticlesvcClient(cc grpc.ClientConnInterface) ArticlesvcClient
type ArticlesvcServer ¶
type ArticlesvcServer interface {
GetCategories(context.Context, *GetCategoriesRequest) (*GetCategoriesResponse, error)
}
ArticlesvcServer is the server API for Articlesvc service.
type CategoryResponse ¶
type CategoryResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CategoryResponse) Descriptor ¶
func (*CategoryResponse) Descriptor() ([]byte, []int)
func (*CategoryResponse) GetId ¶
func (m *CategoryResponse) GetId() int32
func (*CategoryResponse) GetName ¶
func (m *CategoryResponse) GetName() string
func (*CategoryResponse) ProtoMessage ¶
func (*CategoryResponse) ProtoMessage()
func (*CategoryResponse) Reset ¶
func (m *CategoryResponse) Reset()
func (*CategoryResponse) String ¶
func (m *CategoryResponse) String() string
func (*CategoryResponse) XXX_DiscardUnknown ¶
func (m *CategoryResponse) XXX_DiscardUnknown()
func (*CategoryResponse) XXX_Marshal ¶
func (m *CategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CategoryResponse) XXX_Merge ¶
func (m *CategoryResponse) XXX_Merge(src proto.Message)
func (*CategoryResponse) XXX_Size ¶
func (m *CategoryResponse) XXX_Size() int
func (*CategoryResponse) XXX_Unmarshal ¶
func (m *CategoryResponse) XXX_Unmarshal(b []byte) error
type GetCategoriesRequest ¶
type GetCategoriesRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetCategories
func (*GetCategoriesRequest) Descriptor ¶
func (*GetCategoriesRequest) Descriptor() ([]byte, []int)
func (*GetCategoriesRequest) ProtoMessage ¶
func (*GetCategoriesRequest) ProtoMessage()
func (*GetCategoriesRequest) Reset ¶
func (m *GetCategoriesRequest) Reset()
func (*GetCategoriesRequest) String ¶
func (m *GetCategoriesRequest) String() string
func (*GetCategoriesRequest) XXX_DiscardUnknown ¶
func (m *GetCategoriesRequest) XXX_DiscardUnknown()
func (*GetCategoriesRequest) XXX_Marshal ¶
func (m *GetCategoriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCategoriesRequest) XXX_Merge ¶
func (m *GetCategoriesRequest) XXX_Merge(src proto.Message)
func (*GetCategoriesRequest) XXX_Size ¶
func (m *GetCategoriesRequest) XXX_Size() int
func (*GetCategoriesRequest) XXX_Unmarshal ¶
func (m *GetCategoriesRequest) XXX_Unmarshal(b []byte) error
type GetCategoriesResponse ¶
type GetCategoriesResponse struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Data []*CategoryResponse `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCategoriesResponse) Descriptor ¶
func (*GetCategoriesResponse) Descriptor() ([]byte, []int)
func (*GetCategoriesResponse) GetCount ¶
func (m *GetCategoriesResponse) GetCount() int64
func (*GetCategoriesResponse) GetData ¶
func (m *GetCategoriesResponse) GetData() []*CategoryResponse
func (*GetCategoriesResponse) ProtoMessage ¶
func (*GetCategoriesResponse) ProtoMessage()
func (*GetCategoriesResponse) Reset ¶
func (m *GetCategoriesResponse) Reset()
func (*GetCategoriesResponse) String ¶
func (m *GetCategoriesResponse) String() string
func (*GetCategoriesResponse) XXX_DiscardUnknown ¶
func (m *GetCategoriesResponse) XXX_DiscardUnknown()
func (*GetCategoriesResponse) XXX_Marshal ¶
func (m *GetCategoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCategoriesResponse) XXX_Merge ¶
func (m *GetCategoriesResponse) XXX_Merge(src proto.Message)
func (*GetCategoriesResponse) XXX_Size ¶
func (m *GetCategoriesResponse) XXX_Size() int
func (*GetCategoriesResponse) XXX_Unmarshal ¶
func (m *GetCategoriesResponse) XXX_Unmarshal(b []byte) error
type GetUserRequest ¶
type GetUserRequest struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetUser
func (*GetUserRequest) Descriptor ¶
func (*GetUserRequest) Descriptor() ([]byte, []int)
func (*GetUserRequest) GetUid ¶
func (m *GetUserRequest) GetUid() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) Reset ¶
func (m *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (m *GetUserRequest) String() string
func (*GetUserRequest) XXX_DiscardUnknown ¶
func (m *GetUserRequest) XXX_DiscardUnknown()
func (*GetUserRequest) XXX_Marshal ¶
func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserRequest) XXX_Merge ¶
func (m *GetUserRequest) XXX_Merge(src proto.Message)
func (*GetUserRequest) XXX_Size ¶
func (m *GetUserRequest) XXX_Size() int
func (*GetUserRequest) XXX_Unmarshal ¶
func (m *GetUserRequest) XXX_Unmarshal(b []byte) error
type GetUserResponse ¶
type GetUserResponse struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserResponse) Descriptor ¶
func (*GetUserResponse) Descriptor() ([]byte, []int)
func (*GetUserResponse) GetUid ¶
func (m *GetUserResponse) GetUid() string
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) Reset ¶
func (m *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (m *GetUserResponse) String() string
func (*GetUserResponse) XXX_DiscardUnknown ¶
func (m *GetUserResponse) XXX_DiscardUnknown()
func (*GetUserResponse) XXX_Marshal ¶
func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserResponse) XXX_Merge ¶
func (m *GetUserResponse) XXX_Merge(src proto.Message)
func (*GetUserResponse) XXX_Size ¶
func (m *GetUserResponse) XXX_Size() int
func (*GetUserResponse) XXX_Unmarshal ¶
func (m *GetUserResponse) 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Login
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
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 { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` RoleID int32 `protobuf:"varint,4,opt,name=roleID,proto3" json:"roleID,omitempty"` RecentTime string `protobuf:"bytes,5,opt,name=recentTime,proto3" json:"recentTime,omitempty"` CreatedTime string `protobuf:"bytes,6,opt,name=createdTime,proto3" json:"createdTime,omitempty"` UpdatedTime string `protobuf:"bytes,7,opt,name=updatedTime,proto3" json:"updatedTime,omitempty"` Cookie string `protobuf:"bytes,8,opt,name=cookie,proto3" json:"cookie,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetAvatar ¶
func (m *LoginResponse) GetAvatar() string
func (*LoginResponse) GetCookie ¶
func (m *LoginResponse) GetCookie() string
func (*LoginResponse) GetCreatedTime ¶
func (m *LoginResponse) GetCreatedTime() string
func (*LoginResponse) GetId ¶
func (m *LoginResponse) GetId() int32
func (*LoginResponse) GetRecentTime ¶
func (m *LoginResponse) GetRecentTime() string
func (*LoginResponse) GetRoleID ¶
func (m *LoginResponse) GetRoleID() int32
func (*LoginResponse) GetUpdatedTime ¶
func (m *LoginResponse) GetUpdatedTime() string
func (*LoginResponse) GetUsername ¶
func (m *LoginResponse) GetUsername() string
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 { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Logout
func (*LogoutRequest) Descriptor ¶
func (*LogoutRequest) Descriptor() ([]byte, []int)
func (*LogoutRequest) GetSid ¶
func (m *LogoutRequest) GetSid() 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 LogoutResponse ¶
type LogoutResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogoutResponse) Descriptor ¶
func (*LogoutResponse) Descriptor() ([]byte, []int)
func (*LogoutResponse) ProtoMessage ¶
func (*LogoutResponse) ProtoMessage()
func (*LogoutResponse) Reset ¶
func (m *LogoutResponse) Reset()
func (*LogoutResponse) String ¶
func (m *LogoutResponse) String() string
func (*LogoutResponse) XXX_DiscardUnknown ¶
func (m *LogoutResponse) XXX_DiscardUnknown()
func (*LogoutResponse) XXX_Marshal ¶
func (m *LogoutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogoutResponse) XXX_Merge ¶
func (m *LogoutResponse) XXX_Merge(src proto.Message)
func (*LogoutResponse) XXX_Size ¶
func (m *LogoutResponse) XXX_Size() int
func (*LogoutResponse) XXX_Unmarshal ¶
func (m *LogoutResponse) 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"` CodeID int32 `protobuf:"varint,3,opt,name=codeID,proto3" json:"codeID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Register
func (*RegisterRequest) Descriptor ¶
func (*RegisterRequest) Descriptor() ([]byte, []int)
func (*RegisterRequest) GetCodeID ¶
func (m *RegisterRequest) GetCodeID() int32
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 RegisterResponse ¶
type RegisterResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterResponse) Descriptor ¶
func (*RegisterResponse) Descriptor() ([]byte, []int)
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) Reset ¶
func (m *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (m *RegisterResponse) String() string
func (*RegisterResponse) XXX_DiscardUnknown ¶
func (m *RegisterResponse) XXX_DiscardUnknown()
func (*RegisterResponse) XXX_Marshal ¶
func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterResponse) XXX_Merge ¶
func (m *RegisterResponse) XXX_Merge(src proto.Message)
func (*RegisterResponse) XXX_Size ¶
func (m *RegisterResponse) XXX_Size() int
func (*RegisterResponse) XXX_Unmarshal ¶
func (m *RegisterResponse) XXX_Unmarshal(b []byte) error
type SendCodeRequest ¶
type SendCodeRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SendCode
func (*SendCodeRequest) Descriptor ¶
func (*SendCodeRequest) Descriptor() ([]byte, []int)
func (*SendCodeRequest) ProtoMessage ¶
func (*SendCodeRequest) ProtoMessage()
func (*SendCodeRequest) Reset ¶
func (m *SendCodeRequest) Reset()
func (*SendCodeRequest) String ¶
func (m *SendCodeRequest) String() string
func (*SendCodeRequest) XXX_DiscardUnknown ¶
func (m *SendCodeRequest) XXX_DiscardUnknown()
func (*SendCodeRequest) XXX_Marshal ¶
func (m *SendCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendCodeRequest) XXX_Merge ¶
func (m *SendCodeRequest) XXX_Merge(src proto.Message)
func (*SendCodeRequest) XXX_Size ¶
func (m *SendCodeRequest) XXX_Size() int
func (*SendCodeRequest) XXX_Unmarshal ¶
func (m *SendCodeRequest) XXX_Unmarshal(b []byte) error
type SendCodeResponse ¶
type SendCodeResponse struct { CodeID string `protobuf:"bytes,1,opt,name=codeID,proto3" json:"codeID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendCodeResponse) Descriptor ¶
func (*SendCodeResponse) Descriptor() ([]byte, []int)
func (*SendCodeResponse) GetCodeID ¶
func (m *SendCodeResponse) GetCodeID() string
func (*SendCodeResponse) ProtoMessage ¶
func (*SendCodeResponse) ProtoMessage()
func (*SendCodeResponse) Reset ¶
func (m *SendCodeResponse) Reset()
func (*SendCodeResponse) String ¶
func (m *SendCodeResponse) String() string
func (*SendCodeResponse) XXX_DiscardUnknown ¶
func (m *SendCodeResponse) XXX_DiscardUnknown()
func (*SendCodeResponse) XXX_Marshal ¶
func (m *SendCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendCodeResponse) XXX_Merge ¶
func (m *SendCodeResponse) XXX_Merge(src proto.Message)
func (*SendCodeResponse) XXX_Size ¶
func (m *SendCodeResponse) XXX_Size() int
func (*SendCodeResponse) XXX_Unmarshal ¶
func (m *SendCodeResponse) XXX_Unmarshal(b []byte) error
type UnimplementedArticlesvcServer ¶
type UnimplementedArticlesvcServer struct { }
UnimplementedArticlesvcServer can be embedded to have forward compatible implementations.
func (*UnimplementedArticlesvcServer) GetCategories ¶
func (*UnimplementedArticlesvcServer) GetCategories(ctx context.Context, req *GetCategoriesRequest) (*GetCategoriesResponse, error)
type UnimplementedUsersvcServer ¶
type UnimplementedUsersvcServer struct { }
UnimplementedUsersvcServer can be embedded to have forward compatible implementations.
func (*UnimplementedUsersvcServer) GetUser ¶
func (*UnimplementedUsersvcServer) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error)
func (*UnimplementedUsersvcServer) Login ¶
func (*UnimplementedUsersvcServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
func (*UnimplementedUsersvcServer) Logout ¶
func (*UnimplementedUsersvcServer) Logout(ctx context.Context, req *LogoutRequest) (*LogoutResponse, error)
func (*UnimplementedUsersvcServer) Register ¶
func (*UnimplementedUsersvcServer) Register(ctx context.Context, req *RegisterRequest) (*RegisterResponse, error)
func (*UnimplementedUsersvcServer) SendCode ¶
func (*UnimplementedUsersvcServer) SendCode(ctx context.Context, req *SendCodeRequest) (*SendCodeResponse, error)
func (*UnimplementedUsersvcServer) UserList ¶
func (*UnimplementedUsersvcServer) UserList(ctx context.Context, req *UserListRequest) (*UserListResponse, error)
type UserListRequest ¶
type UserListRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UserList
func (*UserListRequest) Descriptor ¶
func (*UserListRequest) Descriptor() ([]byte, []int)
func (*UserListRequest) GetPage ¶
func (m *UserListRequest) GetPage() int32
func (*UserListRequest) GetSize ¶
func (m *UserListRequest) GetSize() int32
func (*UserListRequest) ProtoMessage ¶
func (*UserListRequest) ProtoMessage()
func (*UserListRequest) Reset ¶
func (m *UserListRequest) Reset()
func (*UserListRequest) String ¶
func (m *UserListRequest) String() string
func (*UserListRequest) XXX_DiscardUnknown ¶
func (m *UserListRequest) XXX_DiscardUnknown()
func (*UserListRequest) XXX_Marshal ¶
func (m *UserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserListRequest) XXX_Merge ¶
func (m *UserListRequest) XXX_Merge(src proto.Message)
func (*UserListRequest) XXX_Size ¶
func (m *UserListRequest) XXX_Size() int
func (*UserListRequest) XXX_Unmarshal ¶
func (m *UserListRequest) XXX_Unmarshal(b []byte) error
type UserListResponse ¶
type UserListResponse struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Data []*UserResponse `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserListResponse) Descriptor ¶
func (*UserListResponse) Descriptor() ([]byte, []int)
func (*UserListResponse) GetCount ¶
func (m *UserListResponse) GetCount() int64
func (*UserListResponse) GetData ¶
func (m *UserListResponse) GetData() []*UserResponse
func (*UserListResponse) ProtoMessage ¶
func (*UserListResponse) ProtoMessage()
func (*UserListResponse) Reset ¶
func (m *UserListResponse) Reset()
func (*UserListResponse) String ¶
func (m *UserListResponse) String() string
func (*UserListResponse) XXX_DiscardUnknown ¶
func (m *UserListResponse) XXX_DiscardUnknown()
func (*UserListResponse) XXX_Marshal ¶
func (m *UserListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserListResponse) XXX_Merge ¶
func (m *UserListResponse) XXX_Merge(src proto.Message)
func (*UserListResponse) XXX_Size ¶
func (m *UserListResponse) XXX_Size() int
func (*UserListResponse) XXX_Unmarshal ¶
func (m *UserListResponse) XXX_Unmarshal(b []byte) error
type UserResponse ¶
type UserResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` RoleID int32 `protobuf:"varint,4,opt,name=roleID,proto3" json:"roleID,omitempty"` RecentTime string `protobuf:"bytes,5,opt,name=recentTime,proto3" json:"recentTime,omitempty"` CreatedTime string `protobuf:"bytes,6,opt,name=createdTime,proto3" json:"createdTime,omitempty"` UpdatedTime string `protobuf:"bytes,7,opt,name=updatedTime,proto3" json:"updatedTime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserResponse) Descriptor ¶
func (*UserResponse) Descriptor() ([]byte, []int)
func (*UserResponse) GetAvatar ¶
func (m *UserResponse) GetAvatar() string
func (*UserResponse) GetCreatedTime ¶
func (m *UserResponse) GetCreatedTime() string
func (*UserResponse) GetId ¶
func (m *UserResponse) GetId() int32
func (*UserResponse) GetRecentTime ¶
func (m *UserResponse) GetRecentTime() string
func (*UserResponse) GetRoleID ¶
func (m *UserResponse) GetRoleID() int32
func (*UserResponse) GetUpdatedTime ¶
func (m *UserResponse) GetUpdatedTime() string
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 UsersvcClient ¶
type UsersvcClient interface { GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) SendCode(ctx context.Context, in *SendCodeRequest, opts ...grpc.CallOption) (*SendCodeResponse, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) UserList(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserListResponse, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) }
UsersvcClient is the client API for Usersvc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUsersvcClient ¶
func NewUsersvcClient(cc grpc.ClientConnInterface) UsersvcClient
type UsersvcServer ¶
type UsersvcServer interface { GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) SendCode(context.Context, *SendCodeRequest) (*SendCodeResponse, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) UserList(context.Context, *UserListRequest) (*UserListResponse, error) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) }
UsersvcServer is the server API for Usersvc service.