ptthttp

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

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

Go to latest
Published: Sep 26, 2019 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxUploadSize = 10000000 // 10MB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MyDir

type MyDir http.Dir

func (MyDir) Open

func (d MyDir) Open(name string) (http.File, error)

type Server

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

func NewServer

func NewServer(dir string, addr string, rpcPort int, extAddr string, extRPCAddrStr string, node *node.Node) (*Server, error)

func (*Server) SetRPCServer

func (s *Server) SetRPCServer(n *node.Node) error

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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