Documentation
¶
Overview ¶
Package models provides the data models for the auth service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uint64 `json:"id" gorm:"primaryKey"` Uid string `json:"uid" gorm:"<-;unique;not null"` Name string `json:"name" gorm:"<-;unique;not null"` Email string `json:"email" gorm:"<-;unique;not null"` EmailVerified bool `json:"email_verified" ` Picture string `json:"picture" ` Role int `json:"-"` CreatedAt time.Time `json:"createdAt" gorm:"autoCreateTime"` UpdatedAt time.Time `json:"updatedAt" gorm:"autoUpdateTime"` }
User model for user
func (*User) FromProtoBuffer ¶
FromProtoBuffer takes a pb user and 'loads' the current user with the details
func (*User) ToProtoBuffer ¶
ToProtoBuffer returns a protocol buffers version of the User.
Click to show internal directories.
Click to hide internal directories.