server

package
v0.0.0-...-798156f Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const ProtocolVersion int = 1

ProtocolVersion is the version of the protocol that Bifrost server and JS SDK use to communicate.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateAddressResponse

type GenerateAddressResponse struct {
	ProtocolVersion int    `json:"protocol_version"`
	Chain           string `json:"chain"`
	Address         string `json:"address"`
}

type Server

type Server struct {
	BitcoinListener            *bitcoin.Listener            `inject:""`
	BitcoinAddressGenerator    *bitcoin.AddressGenerator    `inject:""`
	Config                     *config.Config               `inject:""`
	Database                   database.Database            `inject:""`
	EthereumListener           *ethereum.Listener           `inject:""`
	EthereumAddressGenerator   *ethereum.AddressGenerator   `inject:""`
	StellarAccountConfigurator *stellar.AccountConfigurator `inject:""`
	TransactionsQueue          queue.Queue                  `inject:""`
	SSEServer                  sse.ServerInterface          `inject:""`

	MinimumValueBtc string
	MinimumValueEth string
	// contains filtered or unexported fields
}

func (*Server) HandlerEvents

func (s *Server) HandlerEvents(w http.ResponseWriter, r *http.Request)

func (*Server) HandlerGenerateBitcoinAddress

func (s *Server) HandlerGenerateBitcoinAddress(w http.ResponseWriter, r *http.Request)

func (*Server) HandlerGenerateEthereumAddress

func (s *Server) HandlerGenerateEthereumAddress(w http.ResponseWriter, r *http.Request)

func (*Server) HandlerRecoveryTransaction

func (s *Server) HandlerRecoveryTransaction(w http.ResponseWriter, r *http.Request)

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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