user

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package user model the database table User with all used attributes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID   string
	BDay time.Time
}

User represents the user modeled on this service DB. Contains only needed information for the service. BDay is a converted type for ease of use.

func FetchByID

func FetchByID(id string) (p *User, err error)

FetchByID retrieve a user from DB, using his ID as key.

func New

func New(id string, bday string) (p *User, err error)

New creates a new user, using information received.

Jump to

Keyboard shortcuts

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