siad

package
v0.0.0-...-e607a19 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2016 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server creates and serves a HTTP server that offers communication with a Sia API.

func NewServer

func NewServer(bindAddr string) (*Server, error)

NewServer creates a new net.http server listening on bindAddr. Only the /daemon/ routes are registered by this func, additional routes can be registered later by calling serv.mux.Handle.

func (*Server) Close

func (srv *Server) Close() error

Close closes the Server's listener, causing the HTTP server to shut down.

func (*Server) Handle

func (srv *Server) Handle(pattern string, handler http.Handler)

Handle registers the handler for the given pattern. If a handler already exists for pattern, Handle panics.

func (*Server) Serve

func (srv *Server) Serve() error

Serve accepts incoming connections

type Siad

type Siad struct {
	RPCAddr string
	APIAddr string
	// contains filtered or unexported fields
}

Siad is the reference to the siad modules

func (*Siad) Close

func (s *Siad) Close() (err error)

Close stops the siad daemon

func (*Siad) Start

func (s *Siad) Start() (err error)

Start starts the siad daemon with the consensus, gateway and transactionpool modules

Jump to

Keyboard shortcuts

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