database

package
v0.0.0-...-237472a Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	Users(ctx context.Context) ([]User, error)
}

Storage is the interface for accessing data from a database backend.

type User

type User struct {
	ID   int    `json:"id" db:"id"`
	Name string `json:"user" db:"user"`
}

User is an application user.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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