models

package
v0.0.0-...-3338c34 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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