seeders

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seeddb

type Seeddb models.DBData

//Keeps track of logins and mysql login data

type DBData struct {
	DBType, User, Password, Host, DBName string
	Session                              *sql.DB
	SessionToken                         map[string]models.User
}

func (Seeddb) FillDb

func (db Seeddb) FillDb()

Reads Json file and fill mysql database

func (Seeddb) FillUserDb

func (db Seeddb) FillUserDb()

Now implemented

type User

type User struct {
	FirstName string `json:"firstname"`
	LastName  string `json:"lastname"`
	Email     string `json:"email"`
	PassWord  string `json:"password"`
}

Data collected and stored of user

Jump to

Keyboard shortcuts

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