gf_address

package
v0.0.0-...-a1b0e2b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBmongoAdd

func DBmongoAdd(pAddress *GFchainAddress,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func DBmongoAddTag

func DBmongoAddTag(pTagsLst []string,
	pAddressStr string,
	pChainStr string,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func DBmongoExists

func DBmongoExists(pAddressStr string,
	pChainStr string,
	pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) (bool, *gf_core.GFerror)

func DBmongoGetAllTags

func DBmongoGetAllTags(pCtx context.Context,
	pRuntimeSys *gf_core.RuntimeSys) ([]map[string]interface{}, *gf_core.GFerror)

func InitHandlers

func InitHandlers(pAuthSubsystemTypeStr string,
	pKeyServer *gf_identity_core.GFkeyServerInfo,
	pHTTPmux *http.ServeMux,
	pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror

func TaddAddress

func TaddAddress(pAddressStr string,
	pTypeStr string,
	pChainStr string,
	pCookiesLst []*http.Cookie,
	pHTTPagent *gorequest.SuperAgent,
	pTestPortInt int,
	pTest *testing.T)

func TgetAllAddresses

func TgetAllAddresses(pTypeStr string,
	pChainStr string,
	pCookiesLst []*http.Cookie,
	pHTTPagent *gorequest.SuperAgent,
	pTestPortInt int,
	pTest *testing.T)

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"

	TagsLst []string `bson:"tags_lst"`
}

func DBmongoGetAll

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

type GFchainAddressExtern

type GFchainAddressExtern struct {
	AddressStr   string   `json:"address_str"`
	TypeStr      string   `json:"type_str"`       // "my" | "observed"
	ChainNameStr string   `json:"chain_name_str"` // "eth" | "tezos"
	TagsLst      []string `json:"tags_lst"`
}

type GFgetAllInput

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

type GFgetAllOutput

type GFgetAllOutput struct {
	AddressesLst     []string
	AddressesFullLst []GFchainAddressExtern
}

Jump to

Keyboard shortcuts

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