Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogSkipper ¶
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 ¶
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) ServeHTTP ¶
func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the `http.Handler` interface which serves HTTP requests
Click to show internal directories.
Click to hide internal directories.