query

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

type Gateway interface {
	GetAllUsers(context.Context) ([]User, error)
	GetUserByID(context.Context, string) (User, error)
	GetProfile(context.Context, string) (Profile, error)
}

Access to the underlying storage adapter for read use cases

type Profile

type Profile struct {
	User
	APIKey string `json:"api_key"`
}

type User

type User struct {
	ID           string    `json:"id"`
	Email        string    `json:"email"`
	RegisteredAt time.Time `json:"registered_at"`
}

Jump to

Keyboard shortcuts

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