user

package
v0.0.0-...-10f06b4 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Unlicense Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserRepository

func NewUserRepository(db *sqlx.DB) *rest.SqliteRepository

Types

type Repository

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

func (Repository) Adder

func (r Repository) Adder(resource interface{}) (sql.Result, error)

func (Repository) Deleter

func (r Repository) Deleter(id int) (sql.Result, error)

func (Repository) Getter

func (r Repository) Getter(id int) (interface{}, error)

func (Repository) Lister

func (r Repository) Lister(limit string) (interface{}, error)

func (Repository) Updater

func (r Repository) Updater(id int, resource interface{}) (sql.Result, error)

type User

type User struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

func (User) Get

func (u User) Get() rest.Resource

Jump to

Keyboard shortcuts

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