http

package
v0.0.0-...-ae07365 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 11 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 NewServerOpts

type NewServerOpts struct {
	Echo         *echo.Echo
	CorsOrigins  []string
	BlobHashRepo blobstorage.BlobHashRepository
}

type Server

type Server struct {
	// contains filtered or unexported fields
}
@host	blobs.internal.taiko.xyz

Server represents an blobstorage http server instance.

func NewServer

func NewServer(opts NewServerOpts) (*Server, error)

func (*Server) GetBlob

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

GetBlob

 returns blob and kzg commitment by blobHash or multiple comma-separated blobHashes

@Summary	Get blob(s) and KZG commitment(s)
@ID			get-blob
@Param		blobHash	query	string	true "blobHash to query"
@Accept		json
@Produce	json
@Success	200	{object}	getBlobResponse
@Router		/getBlob [get]

func (*Server) Health

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

Health endpoints for probes

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