user

package
v0.0.0-...-4f702ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserProto2User

func UserProto2User(userProto *User) (u *user.User)

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 User2UserProto(user *user.User) (up *User)

func (*User) Descriptor

func (*User) Descriptor() ([]byte, []int)

func (*User) GetCreatedAt

func (m *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetFirstName

func (m *User) GetFirstName() string

func (*User) GetID

func (m *User) GetID() uint64

func (*User) GetLastName

func (m *User) GetLastName() string

func (*User) GetPhone

func (m *User) GetPhone() string

func (*User) GetUserName

func (m *User) GetUserName() string

func (*User) MarshalBinary

func (e *User) MarshalBinary() (data []byte, err error)

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) UnmarshalBinary

func (e *User) UnmarshalBinary(data []byte) (err error)

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL