web

package
v0.0.0-...-8613b64 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientHandler

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

func (ClientHandler) ServeHTTP

func (self ClientHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ClientModel

type ClientModel interface {
	RemoveHandler(key int)
	GetName() string
	GetLoginTime() string
	GetMappingNumber() int
}

type ClientsHandler

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

func (ClientsHandler) ServeHTTP

func (self ClientsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type MappingHandler

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

func (MappingHandler) ServeHTTP

func (self MappingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type MappingModel

type MappingModel interface {
	GetAddr() string
	GetRemotePort() int
	IsOn() bool
	TurnOn() bool
	TurnOff() bool
}

type MappingsHandler

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

func (MappingsHandler) ServeHTTP

func (self MappingsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type NetroxyWebServer

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

func NewNetroxyWebServer

func NewNetroxyWebServer(serverModels []ServerModel, conf *WebConfig) *NetroxyWebServer

func (*NetroxyWebServer) GetFile

func (self *NetroxyWebServer) GetFile(dir string) string

func (*NetroxyWebServer) Serve

func (self *NetroxyWebServer) Serve()

type ServerHandler

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

func (ServerHandler) ServeHTTP

func (self ServerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ServerModel

type ServerModel interface {
	GetClients() []ClientModel
	GetClient(string) ClientModel
	GetMappings() []MappingModel
	GetMapping(int) MappingModel
	TurnMappingOn(int) bool
	TurnMappingOff(int) bool
	GetName() string
	IsTLS() bool
	GetClientNumber() int
	GetMappingNumber() int
	GetStartupTime() string
}

type ServersHandler

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

func (ServersHandler) ServeHTTP

func (self ServersHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WebConfig

type WebConfig struct {
	Enabled bool   `json:"enabled"`
	Ip      string `json:"ip"`
	Port    int    `json:"port"`
	Root    string `json:"root"`
	Https   struct {
		Enabled bool   `json:"enabled"`
		Ca      string `json:"ca"`
		Key     string `json:"key"`
	}
}

Jump to

Keyboard shortcuts

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