Documentation
¶
Index ¶
- Constants
- type GenerateAddressResponse
- type Server
- func (s *Server) HandlerEvents(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandlerGenerateBitcoinAddress(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandlerGenerateEthereumAddress(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandlerRecoveryTransaction(w http.ResponseWriter, r *http.Request)
- func (s *Server) Start() error
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 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)
Click to show internal directories.
Click to hide internal directories.