Help us shape the future of Go! Take the 2026 Go Developer Survey

wallet

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 Server added in v0.9.0

type Server struct {
	// contains filtered or unexported fields
}

func NewHTTPServer

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

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

func (*Server) Start added in v0.9.0

func (s *Server) Start() error

func (*Server) StartStandalone added in v0.9.0

func (s *Server) StartStandalone()

func (*Server) Stop added in v0.9.0

func (s *Server) Stop()

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