server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: BSD-3-Clause Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArtisanalServer

func NewArtisanalServer(proto string, u *url.URL, args ...interface{}) (artisanalinteger.Server, error)

Types

type HTTPServer

type HTTPServer struct {
	artisanalinteger.Server
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(u *gourl.URL, args ...interface{}) (*HTTPServer, error)

func (*HTTPServer) Address

func (s *HTTPServer) Address() string

func (*HTTPServer) ListenAndServe

func (s *HTTPServer) ListenAndServe(service artisanalinteger.Service) error

type TCPServer

type TCPServer struct {
	artisanalinteger.Server
	// contains filtered or unexported fields
}

func NewTCPServer

func NewTCPServer(u *url.URL, args ...interface{}) (*TCPServer, error)

func (*TCPServer) Address

func (s *TCPServer) Address() string

func (*TCPServer) ListenAndServe

func (s *TCPServer) ListenAndServe(service artisanalinteger.Service) error

Jump to

Keyboard shortcuts

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