Documentation ¶
Overview ¶
Package user is a generated protocol buffer package.
It is generated from these files:
user.proto
It has these top-level messages:
CreateUserRequest CreateUserResponse GetSessionRequest GetSessionResponse
Index ¶
- func RegisterUserServer(s *grpc.Server, srv UserServer)
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)
- func (m *CreateUserRequest) GetAge() int32
- func (m *CreateUserRequest) GetEmail() string
- func (m *CreateUserRequest) GetFirstName() string
- func (m *CreateUserRequest) GetLastName() string
- func (m *CreateUserRequest) GetLocation() *CreateUserRequest_Location
- func (m *CreateUserRequest) GetPassword() string
- func (m *CreateUserRequest) GetRole() string
- func (*CreateUserRequest) ProtoMessage()
- func (m *CreateUserRequest) Reset()
- func (m *CreateUserRequest) String() string
- type CreateUserRequest_Location
- func (*CreateUserRequest_Location) Descriptor() ([]byte, []int)
- func (m *CreateUserRequest_Location) GetCity() string
- func (m *CreateUserRequest_Location) GetCountry() string
- func (*CreateUserRequest_Location) ProtoMessage()
- func (m *CreateUserRequest_Location) Reset()
- func (m *CreateUserRequest_Location) String() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)
- func (m *CreateUserResponse) GetFields() []*CreateUserResponse_Field
- func (m *CreateUserResponse) GetMessage() string
- func (m *CreateUserResponse) GetStatus() string
- func (m *CreateUserResponse) GetToken() string
- func (*CreateUserResponse) ProtoMessage()
- func (m *CreateUserResponse) Reset()
- func (m *CreateUserResponse) String() string
- type CreateUserResponse_Field
- func (*CreateUserResponse_Field) Descriptor() ([]byte, []int)
- func (m *CreateUserResponse_Field) GetName() string
- func (m *CreateUserResponse_Field) GetValidation() string
- func (*CreateUserResponse_Field) ProtoMessage()
- func (m *CreateUserResponse_Field) Reset()
- func (m *CreateUserResponse_Field) String() string
- type GetSessionRequest
- func (*GetSessionRequest) Descriptor() ([]byte, []int)
- func (m *GetSessionRequest) GetEmail() string
- func (m *GetSessionRequest) GetPassword() string
- func (m *GetSessionRequest) GetRole() string
- func (*GetSessionRequest) ProtoMessage()
- func (m *GetSessionRequest) Reset()
- func (m *GetSessionRequest) String() string
- type GetSessionResponse
- func (*GetSessionResponse) Descriptor() ([]byte, []int)
- func (m *GetSessionResponse) GetFields() []*GetSessionResponse_Field
- func (m *GetSessionResponse) GetMessage() string
- func (m *GetSessionResponse) GetStatus() string
- func (m *GetSessionResponse) GetToken() string
- func (*GetSessionResponse) ProtoMessage()
- func (m *GetSessionResponse) Reset()
- func (m *GetSessionResponse) String() string
- type GetSessionResponse_Field
- func (*GetSessionResponse_Field) Descriptor() ([]byte, []int)
- func (m *GetSessionResponse_Field) GetName() string
- func (m *GetSessionResponse_Field) GetValidation() string
- func (*GetSessionResponse_Field) ProtoMessage()
- func (m *GetSessionResponse_Field) Reset()
- func (m *GetSessionResponse_Field) String() string
- type UserClient
- type UserServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName" json:"last_name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"` Password string `protobuf:"bytes,4,opt,name=password" json:"password,omitempty"` Age int32 `protobuf:"varint,5,opt,name=age" json:"age,string,omitempty"` Role string `protobuf:"bytes,6,opt,name=role" json:"role,omitempty"` Location *CreateUserRequest_Location `protobuf:"bytes,7,opt,name=location" json:"location,omitempty"` }
func (*CreateUserRequest) Descriptor ¶
func (*CreateUserRequest) Descriptor() ([]byte, []int)
func (*CreateUserRequest) GetAge ¶
func (m *CreateUserRequest) GetAge() int32
func (*CreateUserRequest) GetEmail ¶
func (m *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetFirstName ¶
func (m *CreateUserRequest) GetFirstName() string
func (*CreateUserRequest) GetLastName ¶
func (m *CreateUserRequest) GetLastName() string
func (*CreateUserRequest) GetLocation ¶
func (m *CreateUserRequest) GetLocation() *CreateUserRequest_Location
func (*CreateUserRequest) GetPassword ¶
func (m *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetRole ¶
func (m *CreateUserRequest) GetRole() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) Reset ¶
func (m *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (m *CreateUserRequest) String() string
type CreateUserRequest_Location ¶
type CreateUserRequest_Location struct { City string `protobuf:"bytes,1,opt,name=city" json:"city,omitempty"` Country string `protobuf:"bytes,2,opt,name=country" json:"country,omitempty"` }
func (*CreateUserRequest_Location) Descriptor ¶
func (*CreateUserRequest_Location) Descriptor() ([]byte, []int)
func (*CreateUserRequest_Location) GetCity ¶
func (m *CreateUserRequest_Location) GetCity() string
func (*CreateUserRequest_Location) GetCountry ¶
func (m *CreateUserRequest_Location) GetCountry() string
func (*CreateUserRequest_Location) ProtoMessage ¶
func (*CreateUserRequest_Location) ProtoMessage()
func (*CreateUserRequest_Location) Reset ¶
func (m *CreateUserRequest_Location) Reset()
func (*CreateUserRequest_Location) String ¶
func (m *CreateUserRequest_Location) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` Token string `protobuf:"bytes,3,opt,name=token" json:"token,omitempty"` Fields []*CreateUserResponse_Field `protobuf:"bytes,4,rep,name=fields" json:"fields,omitempty"` }
func (*CreateUserResponse) Descriptor ¶
func (*CreateUserResponse) Descriptor() ([]byte, []int)
func (*CreateUserResponse) GetFields ¶
func (m *CreateUserResponse) GetFields() []*CreateUserResponse_Field
func (*CreateUserResponse) GetMessage ¶
func (m *CreateUserResponse) GetMessage() string
func (*CreateUserResponse) GetStatus ¶
func (m *CreateUserResponse) GetStatus() string
func (*CreateUserResponse) GetToken ¶
func (m *CreateUserResponse) GetToken() string
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) Reset ¶
func (m *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (m *CreateUserResponse) String() string
type CreateUserResponse_Field ¶
type CreateUserResponse_Field struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Validation string `protobuf:"bytes,2,opt,name=validation" json:"validation,omitempty"` }
func (*CreateUserResponse_Field) Descriptor ¶
func (*CreateUserResponse_Field) Descriptor() ([]byte, []int)
func (*CreateUserResponse_Field) GetName ¶
func (m *CreateUserResponse_Field) GetName() string
func (*CreateUserResponse_Field) GetValidation ¶
func (m *CreateUserResponse_Field) GetValidation() string
func (*CreateUserResponse_Field) ProtoMessage ¶
func (*CreateUserResponse_Field) ProtoMessage()
func (*CreateUserResponse_Field) Reset ¶
func (m *CreateUserResponse_Field) Reset()
func (*CreateUserResponse_Field) String ¶
func (m *CreateUserResponse_Field) String() string
type GetSessionRequest ¶
type GetSessionRequest struct { Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` Role string `protobuf:"bytes,3,opt,name=role" json:"role,omitempty"` }
func (*GetSessionRequest) Descriptor ¶
func (*GetSessionRequest) Descriptor() ([]byte, []int)
func (*GetSessionRequest) GetEmail ¶
func (m *GetSessionRequest) GetEmail() string
func (*GetSessionRequest) GetPassword ¶
func (m *GetSessionRequest) GetPassword() string
func (*GetSessionRequest) GetRole ¶
func (m *GetSessionRequest) GetRole() string
func (*GetSessionRequest) ProtoMessage ¶
func (*GetSessionRequest) ProtoMessage()
func (*GetSessionRequest) Reset ¶
func (m *GetSessionRequest) Reset()
func (*GetSessionRequest) String ¶
func (m *GetSessionRequest) String() string
type GetSessionResponse ¶
type GetSessionResponse struct { Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` Token string `protobuf:"bytes,3,opt,name=token" json:"token,omitempty"` Fields []*GetSessionResponse_Field `protobuf:"bytes,4,rep,name=fields" json:"fields,omitempty"` }
func (*GetSessionResponse) Descriptor ¶
func (*GetSessionResponse) Descriptor() ([]byte, []int)
func (*GetSessionResponse) GetFields ¶
func (m *GetSessionResponse) GetFields() []*GetSessionResponse_Field
func (*GetSessionResponse) GetMessage ¶
func (m *GetSessionResponse) GetMessage() string
func (*GetSessionResponse) GetStatus ¶
func (m *GetSessionResponse) GetStatus() string
func (*GetSessionResponse) GetToken ¶
func (m *GetSessionResponse) GetToken() string
func (*GetSessionResponse) ProtoMessage ¶
func (*GetSessionResponse) ProtoMessage()
func (*GetSessionResponse) Reset ¶
func (m *GetSessionResponse) Reset()
func (*GetSessionResponse) String ¶
func (m *GetSessionResponse) String() string
type GetSessionResponse_Field ¶
type GetSessionResponse_Field struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Validation string `protobuf:"bytes,2,opt,name=validation" json:"validation,omitempty"` }
func (*GetSessionResponse_Field) Descriptor ¶
func (*GetSessionResponse_Field) Descriptor() ([]byte, []int)
func (*GetSessionResponse_Field) GetName ¶
func (m *GetSessionResponse_Field) GetName() string
func (*GetSessionResponse_Field) GetValidation ¶
func (m *GetSessionResponse_Field) GetValidation() string
func (*GetSessionResponse_Field) ProtoMessage ¶
func (*GetSessionResponse_Field) ProtoMessage()
func (*GetSessionResponse_Field) Reset ¶
func (m *GetSessionResponse_Field) Reset()
func (*GetSessionResponse_Field) String ¶
func (m *GetSessionResponse_Field) String() string
type UserClient ¶
type UserClient interface { CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*GetSessionResponse, error) }
func NewUserClient ¶
func NewUserClient(cc *grpc.ClientConn) UserClient
type UserServer ¶
type UserServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) GetSession(context.Context, *GetSessionRequest) (*GetSessionResponse, error) }
Click to show internal directories.
Click to hide internal directories.