phonebook

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 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              schema.ID       `bson:"_id" json:"id"`
	Name            string          `bson:"name" json:"name"`
	Email           string          `bson:"email" json:"email"`
	Pubkey          string          `bson:"pubkey" json:"pubkey"`
	Host            string          `bson:"host" json:"host"`
	Description     string          `bson:"description" json:"description"`
	WalletAddresses []WalletAddress `bson:"wallet_addresses" json:"wallet_addresses"`
	Signature       string          `bson:"-" json:"signature,omitempty"`

	// Trusted Sales channel
	// is a special flag that is only set by TF, if set this user can
	// - sponsors pools
	// - get special discount
	IsTrustedChannel bool `bson:"trusted_sales_channel" json:"trusted_sales_channel"`
}

func NewUser

func NewUser() (User, error)

type WalletAddress added in v0.6.0

type WalletAddress struct {
	Asset   string `bson:"asset" json:"asset"`
	Address string `bson:"address" json:"address"`
}

Jump to

Keyboard shortcuts

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