Documentation
¶
Index ¶
- type Service
- func (s *Service) GetBlock(w http.ResponseWriter, r *http.Request)
- func (s *Service) GetGenesisPeers(w http.ResponseWriter, r *http.Request)
- func (s *Service) GetGraph(w http.ResponseWriter, r *http.Request)
- func (s *Service) GetPeers(w http.ResponseWriter, r *http.Request)
- func (s *Service) GetStats(w http.ResponseWriter, r *http.Request)
- func (s *Service) Serve()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service ...
func NewService ¶
NewService ...
func (*Service) GetBlock ¶
func (s *Service) GetBlock(w http.ResponseWriter, r *http.Request)
GetBlock ...
func (*Service) GetGenesisPeers ¶ added in v0.5.0
func (s *Service) GetGenesisPeers(w http.ResponseWriter, r *http.Request)
GetGenesisPeers ...
func (*Service) GetGraph ¶ added in v0.4.1
func (s *Service) GetGraph(w http.ResponseWriter, r *http.Request)
GetGraph ...
func (*Service) GetPeers ¶ added in v0.4.1
func (s *Service) GetPeers(w http.ResponseWriter, r *http.Request)
GetPeers ...
func (*Service) GetStats ¶
func (s *Service) GetStats(w http.ResponseWriter, r *http.Request)
GetStats ...
func (*Service) Serve ¶
func (s *Service) Serve()
Serve calls ListenAndServe. This is a blocking call. It is not necessary to call Serve when Babble is used in-memory and another server has already been started with the DefaultServerMux and the same address:port combination. Indeed, Babble API handlers have already been registered when the service was instantiated.
Click to show internal directories.
Click to hide internal directories.