queryport

package
v0.0.0-...-d8c7374 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Application

func Application(config c.Config)

Application is example application logic that uses query-port server

Types

type RequestHandler

type RequestHandler func(
	req interface{}, conn net.Conn, quitch <-chan bool)

RequestHandler shall interpret the request message from client and post response message(s) on `respch` channel, until `quitch` is closed. When there are no more response to post handler shall close `respch`.

type Server

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

Server handles queryport connections.

func NewServer

func NewServer(
	laddr string, callb RequestHandler,
	config c.Config) (s *Server, err error)

NewServer creates a new queryport daemon.

func (*Server) Close

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

Close queryport daemon. Close method only shuts down lister sockets Established connections will be only closed once client closes those connections.

func (*Server) Statistics

func (s *Server) Statistics() ServerStats

type ServerStats

type ServerStats struct {
	Connections int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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