data

package
v0.1.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Nullifier   string    `db:"nullifier"`
	AnonymousID string    `db:"anonymous_id"`
	IsProven    bool      `db:"is_proven"`
	CreatedAt   time.Time `db:"created_at"`
	UpdatedAt   time.Time `db:"updated_at"`
}

type UsersQ

type UsersQ interface {
	New() UsersQ
	Insert(User) error
	UpdateIsProven(bool) error

	Select() ([]User, error)
	Get() (*User, error)

	FilterByNullifier(nullifier string) UsersQ
	FilterByAnonymousID(id string) UsersQ
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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