Documentation ¶
Index ¶
- Constants
- type GenerateAddressResponse
- type Server
- func (s *Server) HandlerEvents(w stdhttp.ResponseWriter, r *stdhttp.Request)
- func (s *Server) HandlerGenerateBitcoinAddress(w stdhttp.ResponseWriter, r *stdhttp.Request)
- func (s *Server) HandlerGenerateEthereumAddress(w stdhttp.ResponseWriter, r *stdhttp.Request)
- func (s *Server) HandlerRecoveryTransaction(w stdhttp.ResponseWriter, r *stdhttp.Request)
- func (s *Server) OnExchangedTimelocked(destination, transaction string)
- func (s *Server) Start() error
Constants ¶
View Source
const ProtocolVersion int = 2
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 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 SignerPublicKey string // contains filtered or unexported fields }
func (*Server) HandlerEvents ¶
func (s *Server) HandlerEvents(w stdhttp.ResponseWriter, r *stdhttp.Request)
func (*Server) HandlerGenerateBitcoinAddress ¶
func (s *Server) HandlerGenerateBitcoinAddress(w stdhttp.ResponseWriter, r *stdhttp.Request)
func (*Server) HandlerGenerateEthereumAddress ¶
func (s *Server) HandlerGenerateEthereumAddress(w stdhttp.ResponseWriter, r *stdhttp.Request)
func (*Server) HandlerRecoveryTransaction ¶
func (s *Server) HandlerRecoveryTransaction(w stdhttp.ResponseWriter, r *stdhttp.Request)
func (*Server) OnExchangedTimelocked ¶
Click to show internal directories.
Click to hide internal directories.