mock

package
v0.0.0-...-568787c Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespacedShare

type NamespacedShare struct {
	Share
	ID []byte
}

NamespacedShare extends a Share with the corresponding namespace.

type Server

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

Server mocks celestia-node HTTP API.

func NewServer

func NewServer(blockTime time.Duration, logger log.Logger) *Server

NewServer creates new instance of Server.

func (*Server) Start

func (s *Server) Start(listener net.Listener) error

Start starts HTTP server with given listener.

func (*Server) Stop

func (s *Server) Stop()

Stop shuts down the Server.

type Share

type Share []byte

Share contains the raw share data without the corresponding namespace.

Jump to

Keyboard shortcuts

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