Versions in this module Expand all Collapse all v0 v0.1.7 Mar 18, 2022 v0.1.6 Mar 18, 2022 v0.1.5 Jan 13, 2022 v0.1.4 Nov 29, 2021 v0.1.3 Nov 24, 2021 v0.1.2 Nov 23, 2021 v0.1.0 May 28, 2020 v0.1.0-3.0 Mar 18, 2022 v0.1.0-2.0 Mar 18, 2022 v0.0.9 Mar 24, 2020 v0.0.8 Nov 14, 2019 Changes in this version + type UserService struct + func (s *UserService) Add(context.Context, *UserAddInfo) (*BaseResponse, error) + func (s *UserService) Get(context.Context, *SearchUserParam) (*User, error) + func (s *UserService) List(context.Context, *SearchUserParam) (*UserList, error) v0.0.7 Nov 14, 2019 v0.0.6 Nov 14, 2019 Changes in this version + func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer) + type BaseResponse struct + Code int32 + Message string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*BaseResponse) Descriptor() ([]byte, []int) + func (*BaseResponse) ProtoMessage() + func (m *BaseResponse) GetCode() int32 + func (m *BaseResponse) GetMessage() string + func (m *BaseResponse) Reset() + func (m *BaseResponse) String() string + func (m *BaseResponse) XXX_DiscardUnknown() + func (m *BaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BaseResponse) XXX_Merge(src proto.Message) + func (m *BaseResponse) XXX_Size() int + func (m *BaseResponse) XXX_Unmarshal(b []byte) error + type SearchUserParam struct + Id int32 + IdCard string + Mobile string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SearchUserParam) Descriptor() ([]byte, []int) + func (*SearchUserParam) ProtoMessage() + func (m *SearchUserParam) GetId() int32 + func (m *SearchUserParam) GetIdCard() string + func (m *SearchUserParam) GetMobile() string + func (m *SearchUserParam) Reset() + func (m *SearchUserParam) String() string + func (m *SearchUserParam) XXX_DiscardUnknown() + func (m *SearchUserParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SearchUserParam) XXX_Merge(src proto.Message) + func (m *SearchUserParam) XXX_Size() int + func (m *SearchUserParam) XXX_Unmarshal(b []byte) error + type UnimplementedUserServiceServer struct + func (*UnimplementedUserServiceServer) Add(ctx context.Context, req *UserAddInfo) (*BaseResponse, error) + func (*UnimplementedUserServiceServer) Get(ctx context.Context, req *SearchUserParam) (*User, error) + func (*UnimplementedUserServiceServer) List(ctx context.Context, req *SearchUserParam) (*UserList, error) + type User struct + Age int32 + Id int32 + IdCard string + Mobile string + Name string + Sex bool + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (m *User) GetAge() int32 + func (m *User) GetId() int32 + func (m *User) GetIdCard() string + func (m *User) GetMobile() string + func (m *User) GetName() string + func (m *User) GetSex() bool + func (m *User) Reset() + func (m *User) String() string + func (m *User) XXX_DiscardUnknown() + func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *User) XXX_Merge(src proto.Message) + func (m *User) XXX_Size() int + func (m *User) XXX_Unmarshal(b []byte) error + type UserAddInfo struct + Age int32 + Name string + Sex bool + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UserAddInfo) Descriptor() ([]byte, []int) + func (*UserAddInfo) ProtoMessage() + func (m *UserAddInfo) GetAge() int32 + func (m *UserAddInfo) GetName() string + func (m *UserAddInfo) GetSex() bool + func (m *UserAddInfo) Reset() + func (m *UserAddInfo) String() string + func (m *UserAddInfo) XXX_DiscardUnknown() + func (m *UserAddInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UserAddInfo) XXX_Merge(src proto.Message) + func (m *UserAddInfo) XXX_Size() int + func (m *UserAddInfo) XXX_Unmarshal(b []byte) error + type UserList struct + Count int32 + Index int32 + PageSize int32 + Users []*User + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UserList) Descriptor() ([]byte, []int) + func (*UserList) ProtoMessage() + func (m *UserList) GetCount() int32 + func (m *UserList) GetIndex() int32 + func (m *UserList) GetPageSize() int32 + func (m *UserList) GetUsers() []*User + func (m *UserList) Reset() + func (m *UserList) String() string + func (m *UserList) XXX_DiscardUnknown() + func (m *UserList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UserList) XXX_Merge(src proto.Message) + func (m *UserList) XXX_Size() int + func (m *UserList) XXX_Unmarshal(b []byte) error + type UserServiceClient interface + Add func(ctx context.Context, in *UserAddInfo, opts ...grpc.CallOption) (*BaseResponse, error) + Get func(ctx context.Context, in *SearchUserParam, opts ...grpc.CallOption) (*User, error) + List func(ctx context.Context, in *SearchUserParam, opts ...grpc.CallOption) (*UserList, error) + func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient + type UserServiceServer interface + Add func(context.Context, *UserAddInfo) (*BaseResponse, error) + Get func(context.Context, *SearchUserParam) (*User, error) + List func(context.Context, *SearchUserParam) (*UserList, error)