mock

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCode added in v0.9.0

type ErrorCode int

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() (string, error)

Start starts HTTP server with given listener.

func (*Server) Stop

func (s *Server) Stop()

Stop shuts down the Server.

Jump to

Keyboard shortcuts

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