storage

package
v0.0.0-...-3dc46ef Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type     string
	Host     string
	User     string
	Password string
	DbName   string
}

type Storage

type Storage interface {
	DB() *sqlx.DB
	Close() error
}

Storage ...

func New

func New(cfg Config) (Storage, error)

type User

type User struct {
	Username  string `db:"username"`
	Password  string `db:"password"`
	FirstName string `db:"firstname"`
	LastName  string `db:"lastname"`
	Email     string `db:"email"`
}

Jump to

Keyboard shortcuts

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