database

package
v0.0.0-...-e249936 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store defiens db storage

func NewStore

func NewStore(dsn string) (dbStore *Store, err error)

NewStore factory

func (*Store) GetUserByID

func (s *Store) GetUserByID(id uint) (models.User, error)

GetUserByID GetUserByID

func (*Store) PostUser

func (s *Store) PostUser(u models.User) (id uint, err error)

PostUser PostUser

Jump to

Keyboard shortcuts

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