rest

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockResponse

type BlockResponse struct {
	ChainID             string   `json:"chain_id"`
	Height              uint64   `json:"height"`
	CelestiaBlockHeight uint64   `json:"celestia_block_height"`
	Timestamp           int64    `json:"timestamp"`
	Hash                string   `json:"hash"`
	ParentHash          string   `json:"parent_hash"`
	DirsRoot            string   `json:"dirs_root"`
	FilesRoot           string   `json:"files_root"`
	ChunksRoot          string   `json:"chunks_root"`
	StateRoot           string   `json:"state_root"`
	Chunks              []string `json:"chunks"`
	Files               []string `json:"files"`
	Dirs                []string `json:"dirs"`
}

type ChainInfoResponse

type ChainInfoResponse struct {
	ChainID              string `json:"chain_id"`
	FinalizedHeight      uint64 `json:"finalized_height"`
	CelestiaHeightOffset uint64 `json:"celestia_height_offset"`
}

type DirectoryManifestResponse

type DirectoryManifestResponse struct {
	DirectoryName string                  `json:"directory_name"`
	DirectoryHash string                  `json:"directory_hash"`
	Files         []FileReferenceResponse `json:"files"`
}

type FileManifestResponse

type FileManifestResponse struct {
	FileName             string   `json:"file_name"`
	MimeType             string   `json:"mime_type"`
	FileSize             uint64   `json:"file_size"`
	FileHash             string   `json:"file_hash"`
	CompressionAlgorithm string   `json:"compression_algorithm"`
	Chunks               []string `json:"chunks"`
}

type FileReferenceResponse

type FileReferenceResponse struct {
	ID           string `json:"id"`
	RelativePath string `json:"relative_path"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(storageClient pbStorageapisV1.StorageServiceClient, rollupClient pbRollupapisV1.RollupServiceClient) *Server

func (*Server) Router

func (s *Server) Router() *mux.Router

Jump to

Keyboard shortcuts

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