database

package
v0.0.0-...-18f9ab3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func Setup

func Setup() (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, id int) (User, error)

GetUser gets a user from the database by ID.

type User

type User struct {
	ID       int
	Name     string
	Email    string
	Password string
}

Jump to

Keyboard shortcuts

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