customer

package
v0.0.0-...-6861607 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWalletRequired  = errors.New("wallet is required")
	ErrWalletInvalid   = errors.New("wallet is invalid")
	ErrCountryRequired = errors.New("country is required")
	ErrNetworkRequired = errors.New("network is required")
	ErrInvalidNetwork  = errors.New("network is invalid")
)

Functions

func CreateCustomer

func CreateCustomer(db *gorm.DB) echo.HandlerFunc

Types

type Customer

type Customer struct {
	WalletAddress string    `json:"wallet_address"`
	Country       string    `json:"country"`
	Network       string    `json:"network"`
	ID            ulid.ULID `json:"id"`
}

func FromHttpRequest

func FromHttpRequest(wallet string, country string, network string) *Customer

Jump to

Keyboard shortcuts

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