http

package
v0.0.0-...-0e8ef0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogSkipper

func LogSkipper(c echo.Context) bool

Types

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) GetHealthChecks

func (srv *Server) GetHealthChecks(c echo.Context) error

func (*Server) GetHealthChecksByGuardianProverAddress

func (srv *Server) GetHealthChecksByGuardianProverAddress(c echo.Context) error

func (*Server) GetMostRecentHealthCheckByGuardianProverAddress

func (srv *Server) GetMostRecentHealthCheckByGuardianProverAddress(
	c echo.Context,
) error

func (*Server) GetMostRecentSignedBlockByGuardianProverAddress

func (srv *Server) GetMostRecentSignedBlockByGuardianProverAddress(c echo.Context) error

func (*Server) GetMostRecentStartupByGuardianProverAddress

func (srv *Server) GetMostRecentStartupByGuardianProverAddress(
	c echo.Context,
) error

func (*Server) GetNodeInfoByGuardianProverAddress

func (srv *Server) GetNodeInfoByGuardianProverAddress(
	c echo.Context,
) error

func (*Server) GetSignedBlocks

func (srv *Server) GetSignedBlocks(c echo.Context) error

func (*Server) GetStartupsByGuardianProverAddress

func (srv *Server) GetStartupsByGuardianProverAddress(c echo.Context) error

func (*Server) GetUptimeByGuardianProverAddress

func (srv *Server) GetUptimeByGuardianProverAddress(c echo.Context) error

func (*Server) Health

func (srv *Server) Health(c echo.Context) error

Health endpoints for probes

func (*Server) PostHealthCheck

func (srv *Server) PostHealthCheck(c echo.Context) error

func (*Server) PostSignedBlock

func (srv *Server) PostSignedBlock(c echo.Context) error

func (*Server) PostStartup

func (srv *Server) PostStartup(c echo.Context) error

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the `http.Handler` interface which serves HTTP requests

func (*Server) Shutdown

func (srv *Server) Shutdown(ctx context.Context) error

Shutdown shuts down the HTTP server

func (*Server) Start

func (srv *Server) Start(address string) error

Start starts the HTTP server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL