appgeneral

package
v0.185.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(s *Service) *API

func (*API) GetCurrencies

func (api *API) GetCurrencies(context context.Context) []*Currency

Returns a list of currencies for user's selection

type Currency

type Currency struct {
	Id        string `json:"id"`
	ShortName string `json:"shortName"`
	Name      string `json:"name"`
	Symbol    string `json:"symbol"`
	Emoji     string `json:"emoji"`
	Unicode   string `json:"unicode"`
	IsToken   bool   `json:"isToken"`
	IsPopular bool   `json:"isPopular"` // to help the UI to show popular currencies in separate section
}

func GetCurrencies

func GetCurrencies() []*Currency

type Service

type Service struct{}

func New

func New() *Service

func NewService

func NewService() *Service

func (*Service) APIs

func (s *Service) APIs() []rpc.API

func (*Service) Protocols

func (s *Service) Protocols() []p2p.Protocol

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

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