Documentation ¶
Index ¶
- func UserProto2User(userProto *User) (u *user.User)
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetCreatedAt() *timestamp.Timestamp
- func (m *User) GetEmail() string
- func (m *User) GetFirstName() string
- func (m *User) GetID() uint64
- func (m *User) GetLastName() string
- func (m *User) GetPhone() string
- func (m *User) GetUserName() string
- func (e *User) MarshalBinary() (data []byte, err error)
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (e *User) UnmarshalBinary(data []byte) (err error)
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserProto2User ¶
Types ¶
type User ¶
type User struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Email string `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"` Phone string `protobuf:"bytes,3,opt,name=Phone,proto3" json:"Phone,omitempty"` FirstName string `protobuf:"bytes,4,opt,name=FirstName,proto3" json:"FirstName,omitempty"` LastName string `protobuf:"bytes,5,opt,name=LastName,proto3" json:"LastName,omitempty"` UserName string `protobuf:"bytes,6,opt,name=UserName,proto3" json:"UserName,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func User2UserProto ¶
func (*User) Descriptor ¶
func (*User) GetCreatedAt ¶
func (*User) GetFirstName ¶
func (*User) GetLastName ¶
func (*User) GetUserName ¶
func (*User) MarshalBinary ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) UnmarshalBinary ¶
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.