gf_address

package
v0.0.0-...-225a141 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBadd

func DBadd(pAddress *GFchainAddress,
	pCtx context.Context,
	pRuntimeSys *gf_core.Runtime_sys) *gf_core.GFerror

-------------------------------------------------

func InitHandlers

func InitHandlers(pHTTPmux *http.ServeMux,
	pRuntimeSys *gf_core.Runtime_sys) *gf_core.GFerror

-------------------------------------------------

Types

type GFaddInput

type GFaddInput struct {
	UserIDstr  gf_core.GF_ID
	AddressStr string
	TypeStr    string
	ChainStr   string
}

type GFchainAddress

type GFchainAddress struct {
	Vstr              string             `bson:"v_str"` // schema_version
	Id                primitive.ObjectID `bson:"_id,omitempty"`
	IDstr             gf_core.GF_ID      `bson:"id_str"`
	DeletedBool       bool               `bson:"deleted_bool"`
	CreationUNIXtimeF float64            `bson:"creation_unix_time_f"`

	OwnerUserIDstr gf_core.GF_ID `bson:"owner_user_id_str"`
	AddressStr     string        `bson:"address_str"`
	TypeStr        string        `bson:"type_str"`       // "my" | "observed"
	ChainNameStr   string        `bson:"chain_name_str"` // "eth" | "tezos"
}

-------------------------------------------------

func DBgetAll

func DBgetAll(pAddressTypeStr string,
	pAddressChainNameStr string,
	pUserIDstr gf_core.GF_ID,
	pCtx context.Context,
	pRuntimeSys *gf_core.Runtime_sys) ([]*GFchainAddress, *gf_core.GFerror)

------------------------------------------------- GET_ALL

type GFgetAllInput

type GFgetAllInput struct {
	UserIDstr gf_core.GF_ID
	TypeStr   string
	ChainStr  string
}

-------------------------------------------------

type GFgetAllOutput

type GFgetAllOutput struct {
	AddressesLst []string
}

Jump to

Keyboard shortcuts

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