interfaces

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLHandler

type SQLHandler interface {
	Prepare(string) (*sql.Stmt, error)
	Select(dest interface{}, query string, args ...interface{}) error
}

SQLHandler ...

type UserRepository

type UserRepository interface {
	Store(entity.User) error
	Index() ([]entity.User, error)
	Update(int, entity.User) error
	Delete(id int) error
}

UserRepository ...

Jump to

Keyboard shortcuts

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