Documentation ¶
Index ¶
- func RegisterUserRpcServiceServer(s *grpc.Server, srv UserRpcServiceServer)
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)
- func (m *GetUserRequest) GetSize() int64
- func (m *GetUserRequest) GetUserid() 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) GetErr() string
- func (m *GetUserResponse) GetV() *UserRecord
- 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) GetErr() string
- func (m *LoginResponse) GetToken() string
- func (m *LoginResponse) GetUser() *UserRecord
- 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 RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)
- func (m *RegisterRequest) GetEmail() string
- func (m *RegisterRequest) GetFirstname() string
- func (m *RegisterRequest) GetLastname() string
- 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 (m *RegisterResponse) GetErr() string
- func (m *RegisterResponse) GetId() string
- 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 UnimplementedUserRpcServiceServer
- func (*UnimplementedUserRpcServiceServer) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error)
- func (*UnimplementedUserRpcServiceServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
- func (*UnimplementedUserRpcServiceServer) Register(ctx context.Context, req *RegisterRequest) (*RegisterResponse, error)
- type UserRecord
- func (*UserRecord) Descriptor() ([]byte, []int)
- func (m *UserRecord) GetEmail() string
- func (m *UserRecord) GetFirstname() string
- func (m *UserRecord) GetLastname() string
- func (m *UserRecord) GetPassword() string
- func (m *UserRecord) GetSalt() string
- func (m *UserRecord) GetUserid() string
- func (m *UserRecord) GetUsername() string
- func (*UserRecord) ProtoMessage()
- func (m *UserRecord) Reset()
- func (m *UserRecord) String() string
- func (m *UserRecord) XXX_DiscardUnknown()
- func (m *UserRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserRecord) XXX_Merge(src proto.Message)
- func (m *UserRecord) XXX_Size() int
- func (m *UserRecord) XXX_Unmarshal(b []byte) error
- type UserRpcServiceClient
- type UserRpcServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserRpcServiceServer ¶
func RegisterUserRpcServiceServer(s *grpc.Server, srv UserRpcServiceServer)
Types ¶
type GetUserRequest ¶
type GetUserRequest struct { Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserRequest) Descriptor ¶
func (*GetUserRequest) Descriptor() ([]byte, []int)
func (*GetUserRequest) GetSize ¶
func (m *GetUserRequest) GetSize() int64
func (*GetUserRequest) GetUserid ¶
func (m *GetUserRequest) GetUserid() 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 { V *UserRecord `protobuf:"bytes,1,opt,name=v,proto3" json:"v,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserResponse) Descriptor ¶
func (*GetUserResponse) Descriptor() ([]byte, []int)
func (*GetUserResponse) GetErr ¶
func (m *GetUserResponse) GetErr() string
func (*GetUserResponse) GetV ¶
func (m *GetUserResponse) GetV() *UserRecord
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:"-"` }
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 { User *UserRecord `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` Err string `protobuf:"bytes,3,opt,name=err,proto3" json:"err,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetErr ¶
func (m *LoginResponse) GetErr() string
func (*LoginResponse) GetToken ¶
func (m *LoginResponse) GetToken() string
func (*LoginResponse) GetUser ¶
func (m *LoginResponse) GetUser() *UserRecord
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 RegisterRequest ¶
type RegisterRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Firstname string `protobuf:"bytes,2,opt,name=firstname,proto3" json:"firstname,omitempty"` Lastname string `protobuf:"bytes,3,opt,name=lastname,proto3" json:"lastname,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,5,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) GetEmail ¶
func (m *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetFirstname ¶
func (m *RegisterRequest) GetFirstname() string
func (*RegisterRequest) GetLastname ¶
func (m *RegisterRequest) GetLastname() string
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 { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterResponse) Descriptor ¶
func (*RegisterResponse) Descriptor() ([]byte, []int)
func (*RegisterResponse) GetErr ¶
func (m *RegisterResponse) GetErr() string
func (*RegisterResponse) GetId ¶
func (m *RegisterResponse) GetId() string
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 UnimplementedUserRpcServiceServer ¶
type UnimplementedUserRpcServiceServer struct { }
UnimplementedUserRpcServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserRpcServiceServer) GetUser ¶
func (*UnimplementedUserRpcServiceServer) GetUser(ctx context.Context, req *GetUserRequest) (*GetUserResponse, error)
func (*UnimplementedUserRpcServiceServer) Login ¶
func (*UnimplementedUserRpcServiceServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error)
func (*UnimplementedUserRpcServiceServer) Register ¶
func (*UnimplementedUserRpcServiceServer) Register(ctx context.Context, req *RegisterRequest) (*RegisterResponse, error)
type UserRecord ¶
type UserRecord struct { Firstname string `protobuf:"bytes,1,opt,name=firstname,proto3" json:"firstname,omitempty"` Lastname string `protobuf:"bytes,2,opt,name=lastname,proto3" json:"lastname,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` Salt string `protobuf:"bytes,6,opt,name=salt,proto3" json:"salt,omitempty"` Userid string `protobuf:"bytes,7,opt,name=userid,proto3" json:"userid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserRecord) Descriptor ¶
func (*UserRecord) Descriptor() ([]byte, []int)
func (*UserRecord) GetEmail ¶
func (m *UserRecord) GetEmail() string
func (*UserRecord) GetFirstname ¶
func (m *UserRecord) GetFirstname() string
func (*UserRecord) GetLastname ¶
func (m *UserRecord) GetLastname() string
func (*UserRecord) GetPassword ¶
func (m *UserRecord) GetPassword() string
func (*UserRecord) GetSalt ¶
func (m *UserRecord) GetSalt() string
func (*UserRecord) GetUserid ¶
func (m *UserRecord) GetUserid() string
func (*UserRecord) GetUsername ¶
func (m *UserRecord) GetUsername() string
func (*UserRecord) ProtoMessage ¶
func (*UserRecord) ProtoMessage()
func (*UserRecord) Reset ¶
func (m *UserRecord) Reset()
func (*UserRecord) String ¶
func (m *UserRecord) String() string
func (*UserRecord) XXX_DiscardUnknown ¶
func (m *UserRecord) XXX_DiscardUnknown()
func (*UserRecord) XXX_Marshal ¶
func (m *UserRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserRecord) XXX_Merge ¶
func (m *UserRecord) XXX_Merge(src proto.Message)
func (*UserRecord) XXX_Size ¶
func (m *UserRecord) XXX_Size() int
func (*UserRecord) XXX_Unmarshal ¶
func (m *UserRecord) XXX_Unmarshal(b []byte) error
type UserRpcServiceClient ¶
type UserRpcServiceClient interface { GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) }
UserRpcServiceClient is the client API for UserRpcService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserRpcServiceClient ¶
func NewUserRpcServiceClient(cc grpc.ClientConnInterface) UserRpcServiceClient
type UserRpcServiceServer ¶
type UserRpcServiceServer interface { GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) }
UserRpcServiceServer is the server API for UserRpcService service.
Click to show internal directories.
Click to hide internal directories.