Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBData ¶
type DBData struct { DBType string `mapstructure:"DB_TYPE"` User string `mapstructure:"USER"` Password string `mapstructure:"PASSWORD"` Host string `mapstructure:"HOST"` DBName string `mapstructure:"DB_NAME"` Session *sql.DB SessionToken map[string]UserCredentials }
For database connection
type PhoneBookContact ¶
type PhoneBookContact struct { FirstName string `json:"firstname" validate:"required"` LastName string `json:"lastname" validate:"required"` PhoneNumber string `json:"phone_number" validate:"required"` ID string `json:"id"` }
phonebook struct
type UserCredentials ¶
type UserCredentials struct { FirstName string `json:"firstname" validate:"required"` LastName string `json:"lastname" validate:"required"` Email string `json:"email" validate:"required"` PassWord string `json:"password" validate:"required"` ID string `json:"id"` }
For registering new users
Click to show internal directories.
Click to hide internal directories.