store

package
v0.0.0-...-6db27b3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 4 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
}

func NewStore

func NewStore(conn *sql.DB) *Store

func (Store) CreateUser

func (s Store) CreateUser(ctx context.Context, user User) error

func (Store) GetUserByID

func (s Store) GetUserByID(ctx context.Context, id string) (User, error)

type User

type User struct {
	ID   string
	Name string
}

Jump to

Keyboard shortcuts

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