Versions in this module Expand all Collapse all v0 v0.1.6 Oct 9, 2019 v0.1.5 Oct 9, 2019 Changes in this version + var UserSex_name = map[int32]string + var UserSex_value = map[string]int32 + func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error + func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error + func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer) + type Null struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Null) Descriptor() ([]byte, []int) + func (*Null) ProtoMessage() + func (m *Null) Reset() + func (m *Null) String() string + func (m *Null) XXX_DiscardUnknown() + func (m *Null) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Null) XXX_Merge(src proto.Message) + func (m *Null) XXX_Size() int + func (m *Null) XXX_Unmarshal(b []byte) error + type Page struct + Count int64 + PageIndex int64 + PageSize int64 + PageTotal int64 + Total int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Page) Descriptor() ([]byte, []int) + func (*Page) ProtoMessage() + func (m *Page) GetCount() int64 + func (m *Page) GetPageIndex() int64 + func (m *Page) GetPageSize() int64 + func (m *Page) GetPageTotal() int64 + func (m *Page) GetTotal() int64 + 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 UnimplementedUserServiceServer struct + func (*UnimplementedUserServiceServer) UserAdd(ctx context.Context, req *UserBase) (*UserBase, error) + func (*UnimplementedUserServiceServer) UserDelete(ctx context.Context, req *UserID) (*UserID, error) + func (*UnimplementedUserServiceServer) UserQueryAll(ctx context.Context, req *UserAllOption) (*UserAll, error) + func (*UnimplementedUserServiceServer) UserQueryOne(ctx context.Context, req *UserID) (*UserBase, error) + func (*UnimplementedUserServiceServer) UserUpdate(ctx context.Context, req *UserBase) (*UserBase, error) + type UserAll struct + All []*UserBase + Page *Page + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UserAll) Descriptor() ([]byte, []int) + func (*UserAll) ProtoMessage() + func (m *UserAll) GetAll() []*UserBase + func (m *UserAll) GetPage() *Page + func (m *UserAll) Reset() + func (m *UserAll) String() string + func (m *UserAll) XXX_DiscardUnknown() + func (m *UserAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UserAll) XXX_Merge(src proto.Message) + func (m *UserAll) XXX_Size() int + func (m *UserAll) XXX_Unmarshal(b []byte) error + type UserAllOption struct + Page *Page + Sex UserSex + UserName string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UserAllOption) Descriptor() ([]byte, []int) + func (*UserAllOption) ProtoMessage() + func (m *UserAllOption) GetPage() *Page + func (m *UserAllOption) GetSex() UserSex + func (m *UserAllOption) GetUserName() string + func (m *UserAllOption) Reset() + func (m *UserAllOption) String() string + func (m *UserAllOption) XXX_DiscardUnknown() + func (m *UserAllOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UserAllOption) XXX_Merge(src proto.Message) + func (m *UserAllOption) XXX_Size() int + func (m *UserAllOption) XXX_Unmarshal(b []byte) error + type UserBase struct + Id int64 + Iphone string + Password string + Sex UserSex + UserName string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UserBase) Descriptor() ([]byte, []int) + func (*UserBase) ProtoMessage() + func (m *UserBase) GetId() int64 + func (m *UserBase) GetIphone() string + func (m *UserBase) GetPassword() string + func (m *UserBase) GetSex() UserSex + func (m *UserBase) GetUserName() string + func (m *UserBase) Reset() + func (m *UserBase) String() string + func (m *UserBase) XXX_DiscardUnknown() + func (m *UserBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UserBase) XXX_Merge(src proto.Message) + func (m *UserBase) XXX_Size() int + func (m *UserBase) XXX_Unmarshal(b []byte) error + type UserID struct + Id int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UserID) Descriptor() ([]byte, []int) + func (*UserID) ProtoMessage() + func (m *UserID) GetId() int64 + func (m *UserID) Reset() + func (m *UserID) String() string + func (m *UserID) XXX_DiscardUnknown() + func (m *UserID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UserID) XXX_Merge(src proto.Message) + func (m *UserID) XXX_Size() int + func (m *UserID) XXX_Unmarshal(b []byte) error + type UserServiceClient interface + UserAdd func(ctx context.Context, in *UserBase, opts ...grpc.CallOption) (*UserBase, error) + UserDelete func(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserID, error) + UserQueryAll func(ctx context.Context, in *UserAllOption, opts ...grpc.CallOption) (*UserAll, error) + UserQueryOne func(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserBase, error) + UserUpdate func(ctx context.Context, in *UserBase, opts ...grpc.CallOption) (*UserBase, error) + func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient + type UserServiceServer interface + UserAdd func(context.Context, *UserBase) (*UserBase, error) + UserDelete func(context.Context, *UserID) (*UserID, error) + UserQueryAll func(context.Context, *UserAllOption) (*UserAll, error) + UserQueryOne func(context.Context, *UserID) (*UserBase, error) + UserUpdate func(context.Context, *UserBase) (*UserBase, error) + type UserSex int32 + const UserSex_DEFAULT + const UserSex_MEN + const UserSex_WOMEN + func (UserSex) EnumDescriptor() ([]byte, []int) + func (x UserSex) String() string