Documentation ¶
Index ¶
- type APIView
- type CORSFile
- type Handler
- type POSTHandler
- type PluginServer
- type Router
- type Server
- func (p *Server) APIRealtimeURL() string
- func (p *Server) APIURL() string
- func (p *Server) AppURL() string
- func (p *Server) CommonURL() string
- func (r *Server) HandleAPI(res http.ResponseWriter, req *http.Request)
- func (r *Server) HandleApp(res http.ResponseWriter, req *http.Request)
- func (r *Server) HandleCommon(res http.ResponseWriter, req *http.Request)
- func (p *Server) HandleData(res http.ResponseWriter, req *http.Request)
- func (r *Server) HandlePlugins(mode string, res http.ResponseWriter, req *http.Request)
- func (p *Server) PluginURL() string
- func (p *Server) Run(port int) error
- type ServerLists
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIView ¶
APIView will wrap a Handler and return CORS-compliant headers for the AppURL domain.
func (*APIView) ContentLength ¶
ContentLength will return the content length if the method is not OPTIONS.
func (*APIView) ContentType ¶
ContentType will return the content type if the method is not OPTIONS.
func (*APIView) Handle ¶
Handle a request, don't call the inner handler if the request is of the OPTIONS method.
type POSTHandler ¶
type POSTHandler struct {
Handler
}
POSTHandler contains an inner handler that it utilizes only if the request is the POST method.
type PluginServer ¶
PluginServer returns the list of plugins from the MLGBASE/plugins directory.
type Server ¶
type Server struct { Suffix string Common string Plugins string App string API string // Other Servers Dispatcher *dispatcher.Server Tracker *tracker.Tracker // Settings Module Settings *models.Store // Logging Information DataDirectory string AssetDirectory string Debug bool // Melange Information Platform string Version string AppLocation string ControllerPort string }
func (*Server) APIRealtimeURL ¶
func (*Server) HandleAPI ¶
func (r *Server) HandleAPI(res http.ResponseWriter, req *http.Request)
HandleAPI will redirect a request through the API Layer.
func (*Server) HandleCommon ¶
func (r *Server) HandleCommon(res http.ResponseWriter, req *http.Request)
func (*Server) HandleData ¶
func (p *Server) HandleData(res http.ResponseWriter, req *http.Request)
func (*Server) HandlePlugins ¶
type ServerLists ¶
ServerLists will return the list of Trackers or Servers from getmelange.com.
Directories ¶
Path | Synopsis |
---|---|
The models package defines how the Application server interacts with the local SQLITE database to store information.
|
The models package defines how the Application server interacts with the local SQLITE database to store information. |
Click to show internal directories.
Click to hide internal directories.