server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package server contains tulpa's logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppPort    int
	ProxyPort  int
	IgnoreDirs []string
	Timeout    time.Duration
	Debounce   time.Duration
	// DebouncePoll is the interval between watches while the request debouncer
	// is saturated. It will be disabled if <= 0.
	DebouncePoll  time.Duration
	Latency       time.Duration
	LatencyJitter time.Duration
	Wait          bool
	Verbose       bool
	// contains filtered or unexported fields
}

func (*Config) Debug

func (c *Config) Debug(args ...interface{})

func (*Config) Debugf

func (c *Config) Debugf(msg string, args ...interface{})

func (*Config) Initialize

func (c *Config) Initialize()

func (*Config) Print

func (c *Config) Print(args ...interface{})

func (*Config) Printf

func (c *Config) Printf(msg string, args ...interface{})

type Server

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

func New

func New(cfg *Config, args []string) *Server

func (*Server) Addr

func (s *Server) Addr() net.Addr

func (*Server) GoStart

func (s *Server) GoStart() chan error

func (*Server) Start

func (s *Server) Start() error

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