server

package
v0.0.0-...-3f804d4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Server version string

Functions

This section is empty.

Types

type Server

type Server struct {
	net.Listener
	// contains filtered or unexported fields
}

Server instance struct

func NewServer

func NewServer(listener net.Listener) (server *Server)

NewServer creates new `HTTP Relay` server instance and returns it.

func (*Server) Active

func (s *Server) Active() bool

Returns true if server is active

func (*Server) Start

func (s *Server) Start() <-chan error

Starts server

func (*Server) Stop

func (s *Server) Stop(timeout time.Duration)

Stops server

type Waiter

type Waiter interface {
	Wait() <-chan struct{}
}

Jump to

Keyboard shortcuts

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