user

package
v0.0.0-...-f679f10 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	City       string `json:"city,omitempty"`
	Country    string `json:"country,omitempty"`
	PostalCode string `json:"postalCode,omitempty"`
}

type Contact

type Contact struct {
	Email string `json:"email"`
	Phone string `json:"phone"`
}

type Metadata

type Metadata struct {
}

type Service

type Service interface {
	Create(user *User) error
	Get() (*User, error)
}

func New

func New(db store.Store, logger *logrus.Logger, address common.Address) Service

type Type

type Type struct {
	MBTI      string `json:"mbti,omitempty"`
	Horoscope string `json:"horoscope,omitempty"`
}

type User

type User struct {
	Name    string  `json:"name,omitempty"`
	Age     int     `json:"age,omitempty"`
	Gender  string  `json:"gender,omitempty"`
	DOB     string  `json:"dob"`
	Address Address `json:"address"`
	Contact Contact `json:"contact"`
	Type    Type    `json:"type"`
	Wallet  string  `json:"wallet"`
	PubKey  string  `json:"pubKey"`
}

Jump to

Keyboard shortcuts

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