server

package
v0.0.0-...-b0c7cc0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIncompatibleVersion = errors.New("incompatible protocol version")

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(id uint64, conn connection, dir *treedb.Directory, logger *logrus.Logger, disconnected chan uint64) *Client

func (*Client) Shutdown

func (c *Client) Shutdown()

func (*Client) Start

func (c *Client) Start(cap int)

type Server

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

func Listen

func Listen(cfg *config.Config) (s *Server, err error)

func (*Server) Serve

func (s *Server) Serve()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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