Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Metrics *ServerMetrics // contains filtered or unexported fields }
func NewServer ¶
func NewServer(serverConfig ServerConfig) (*Server, error)
func (*Server) RegisterMetrics ¶
func (s *Server) RegisterMetrics(registry *prometheus.Registry)
RegisterMetrics registers the prometheus metrics
type ServerConfig ¶
type ServerConfig struct { Ctx context.Context Port uint16 AdminPort uint16 TLSConfig *TLSConfig PrometheusRegistry *prometheus.Registry StellarWithdrawalHandler *controllers.StellarWithdrawalHandler StellarRefundHandler *controllers.StellarRefundHandler EthereumWithdrawalHandler *controllers.EthereumWithdrawalHandler EthereumRefundHandler *controllers.EthereumRefundHandler TestDepositHandler *controllers.TestDeposit }
type ServerMetrics ¶
type ServerMetrics struct {
RequestDurationSummary *prometheus.SummaryVec
}
Click to show internal directories.
Click to hide internal directories.