model

package
v0.0.0-...-1b047e1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 2 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 {
	ID        int    `json:"id"`
	PublicKey string `json:"pb"`
	Nonce     string `json:"nonce"`
	Signature string `json:"sig"`
}

func (*User) CreateUser

func (u *User) CreateUser(db *sql.DB) error

func (*User) GetUserNonce

func (u *User) GetUserNonce(db *sql.DB) error

func (*User) UpdateNonce

func (u *User) UpdateNonce(db *sql.DB) error

Jump to

Keyboard shortcuts

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