server

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

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

Go to latest
Published: Feb 3, 2017 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SERVER_DEFAULT_NAME     = "yados"
	SERVER_DEFAULT_IP       = "0.0.0.0"
	SERVER_DEFAULT_PORT     = 8709
	SERVER_DEFAULT_STOREDIR = "yados.store"
)

======== Public Const Variables ========

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(r *mux.Router, handlerFns ...HandlerFunc) http.Handler

Types

type HandlerFunc

type HandlerFunc func(http.Handler) http.Handler

HandlerFunc - useful to chain different middleware http.Handler

type MuxConn

type MuxConn struct {
	net.Conn
}

MuxConn - **************** MuxConn ****************

func NewMuxConn

func NewMuxConn(conn net.Conn) *MuxConn

NewMuxConn () ======== NewMuxConn() ========

type MuxListener

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

MuxListener - **************** MuxListener ****************

func (*MuxListener) Accept

func (l *MuxListener) Accept() (net.Conn, error)

Accept () ======== MuxListener::Accept() ========

func (*MuxListener) Close

func (l *MuxListener) Close() error

Close () ======== MuxListener::Close() ========

type MuxServer

type MuxServer struct {
	Name string
	http.Server

	WaitGroup       *sync.WaitGroup
	GracefulTimeout time.Duration
	// contains filtered or unexported fields
}

MuxServer - **************** MuServer ****************

func NewMuxServer

func NewMuxServer(name string, addr string, handler http.Handler) *MuxServer

NewMuxServer () ======== NewMuxServer() ========

func (*MuxServer) Close

func (ms *MuxServer) Close() error

Close () ======== MuxServer::Close() ========

func (*MuxServer) ListenAndServe

func (ms *MuxServer) ListenAndServe() error

ListenAndServe () ======== MuxServer::ListenAndServe() ========

func (*MuxServer) ListenAndServeTLS

func (ms *MuxServer) ListenAndServeTLS(certFile, keyFile string) error

ListenAndServeTLS () ======== MuxServer::ListenAndServeTLS() ========

type ObjectHandlers

type ObjectHandlers struct {
}

**************** ObjectHandlers ****************

func (ObjectHandlers) Handle_DeleteObject

func (oh ObjectHandlers) Handle_DeleteObject(w http.ResponseWriter, r *http.Request)

======== Handle_DeleteObject ========

func (ObjectHandlers) Handle_GetObject

func (oh ObjectHandlers) Handle_GetObject(w http.ResponseWriter, r *http.Request)

======== Handle_DeleteObject ========

func (ObjectHandlers) Handle_PutObject

func (oh ObjectHandlers) Handle_PutObject(w http.ResponseWriter, r *http.Request)

======== Handle_PutObject ========

type StackServer

type StackServer struct {
	Name string
	// contains filtered or unexported fields
}

StackServer - **************** StackServer ****************

func NewStackServer

func NewStackServer(ip string, port int, storeDir string) (ss *StackServer, err error)

NewStackServer - ======== NewStackServer() ========

func (*StackServer) Close

func (_this *StackServer) Close()

Close - ======== Close() ========

func (*StackServer) ListenAndServe

func (_this *StackServer) ListenAndServe()

ListenAndServe - ======== StackServer.ListenAndServe() ========

Jump to

Keyboard shortcuts

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