Documentation ¶
Index ¶
- func LogSkipper(c echo.Context) bool
- type NewServerOpts
- type Server
- func (srv *Server) GetHealthChecks(c echo.Context) error
- func (srv *Server) GetHealthChecksByGuardianProverAddress(c echo.Context) error
- func (srv *Server) GetMostRecentHealthCheckByGuardianProverAddress(c echo.Context) error
- func (srv *Server) GetMostRecentSignedBlockByGuardianProverAddress(c echo.Context) error
- func (srv *Server) GetMostRecentStartupByGuardianProverAddress(c echo.Context) error
- func (srv *Server) GetNodeInfoByGuardianProverAddress(c echo.Context) error
- func (srv *Server) GetSignedBlocks(c echo.Context) error
- func (srv *Server) GetStartupsByGuardianProverAddress(c echo.Context) error
- func (srv *Server) GetUptimeByGuardianProverAddress(c echo.Context) error
- func (srv *Server) Health(c echo.Context) error
- func (srv *Server) PostHealthCheck(c echo.Context) error
- func (srv *Server) PostSignedBlock(c echo.Context) error
- func (srv *Server) PostStartup(c echo.Context) error
- func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (srv *Server) Shutdown(ctx context.Context) error
- func (srv *Server) Start(address string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogSkipper ¶
Types ¶
type NewServerOpts ¶
type NewServerOpts struct { Echo *echo.Echo EthClient *ethclient.Client HealthCheckRepo guardianproverhealthcheck.HealthCheckRepository SignedBlockRepo guardianproverhealthcheck.SignedBlockRepository StartupRepo guardianproverhealthcheck.StartupRepository CorsOrigins []string GuardianProvers []guardianproverhealthcheck.GuardianProver }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
@host healthcheck.internal.taiko.xyz Server represents a guardian prover health check http server instance.
func NewServer ¶
func NewServer(opts NewServerOpts) (*Server, error)
func (*Server) GetHealthChecksByGuardianProverAddress ¶
func (*Server) GetMostRecentHealthCheckByGuardianProverAddress ¶
func (*Server) GetMostRecentSignedBlockByGuardianProverAddress ¶
func (*Server) GetMostRecentStartupByGuardianProverAddress ¶
func (*Server) GetNodeInfoByGuardianProverAddress ¶
func (*Server) GetStartupsByGuardianProverAddress ¶
func (*Server) GetUptimeByGuardianProverAddress ¶
func (*Server) ServeHTTP ¶
func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the `http.Handler` interface which serves HTTP requests
Source Files ¶
- get_health_checks.go
- get_health_checks_by_guardian_prover_address.go
- get_most_recent_health_checks_by_guardian_prover_address.go
- get_most_recent_signed_block_by_guardian_prover_address.go
- get_most_recent_startup_by_guardian_prover_address.go
- get_node_info_by_guardian_prover_address.go
- get_signed_blocks.go
- get_startups_by_guardian_prover_address.go
- get_uptime_by_guardian_prover_address.go
- post_health_check.go
- post_signed_block.go
- post_startup.go
- routes.go
- server.go
Click to show internal directories.
Click to hide internal directories.