users

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB        *sql.DB
	TokenAuth *jwtauth.JWTAuth
)

Functions

func CreateProfile

func CreateProfile(username string, email string)

func Routes

func Routes() *chi.Mux

Types

type User

type User struct {
	Username string `json:"username",db:"username"`
	Email    string `json:"email",db:"email"`
	Country  string `json:"location",db:"location"`
	Bio      string `json:"bio",db:"bio"`
}

Jump to

Keyboard shortcuts

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