user

package
v0.0.0-...-836e728 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package user provides model and methods for storing and retriving user identified by wallet address

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(walletAddress string) error

Add adds user with given wallet address to database

Types

type User

type User struct {
	WalletAddress string          `json:"-" gorm:"primaryKey;not null"`
	FlowId        []flowid.FlowId `gorm:"foreignkey:WalletAddress" json:"-"`
}

CustodialUser custodial user model with wallet address and one to many relation with FlowId

func Get

func Get(walletAddr string) (*User, error)

Get returns user with given wallet address from database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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