wallet

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPServer

func NewHTTPServer(port uint, config *FlowConfig) (*server, error)

NewHTTPServer returns a new wallet server listening on provided port number.

Types

type DiscoveryService added in v0.7.1

type DiscoveryService struct {
	FType    string                   `json:"f_type"`
	FVsn     string                   `json:"f_vsn"`
	Type     string                   `json:"type"`
	Endpoint string                   `json:"endpoint"`
	Method   string                   `json:"method"`
	Uid      string                   `json:"uid"`
	Provider DiscoveryServiceProvider `json:"provider"`
}

type DiscoveryServiceProvider added in v0.7.1

type DiscoveryServiceProvider struct {
	Address     string `json:"address"`
	Name        string `json:"name"`
	Icon        string `json:"icon"`
	Description string `json:"description"`
	Color       string `json:"color"`
	Website     string `json:"website"`
}

type FCLClient added in v0.7.3

type FCLClient struct {
	Platform string `json:"platform"`
}

type FCLConfig added in v0.7.3

type FCLConfig struct {
	Client FCLClient `json:"client"`
}

type FCLMessage added in v0.7.3

type FCLMessage struct {
	Config FCLConfig `json:"config"`
}

type FclResponse added in v0.7.1

type FclResponse struct {
	FType   string  `json:"f_type"`
	FVsn    string  `json:"f_vsn"`
	Status  string  `json:"status"`
	Updates Service `json:"updates"`
}

type FlowConfig

type FlowConfig struct {
	Address    string `json:"flowAccountAddress"`
	PrivateKey string `json:"flowAccountPrivateKey"`
	PublicKey  string `json:"flowAccountPublicKey"`
	AccessNode string `json:"flowAccessNode"`
	AvatarUrl  string `json:"flowAvatarUrl"`
}

type Service added in v0.7.1

type Service struct {
	FType    string            `json:"f_type"`
	FVsn     string            `json:"f_vsn"`
	Type     string            `json:"type"`
	Endpoint string            `json:"endpoint"`
	Method   string            `json:"method"`
	Params   map[string]string `json:"params"`
}

type ServicePostResponse added in v0.7.1

type ServicePostResponse struct {
	FclResponse
	Local Service `json:"local"`
}

type UpdatePollingSessionRequest added in v0.7.1

type UpdatePollingSessionRequest struct {
	PollingId string                 `json:"pollingId"`
	Data      map[string]interface{} `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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