Documentation ¶
Index ¶
- func WriteServiceResponse(w http.ResponseWriter, data interface{}, err error)
- type Server
- func (s *Server) Run()
- func (s *Server) RunWithTLS(certFile, keyFile string)
- func (s *Server) ServeAnimations() http.HandlerFunc
- func (s *Server) ServeFonts() http.HandlerFunc
- func (s *Server) ServeIcons() http.HandlerFunc
- func (s *Server) ServeManifest() http.HandlerFunc
- func (s *Server) ServeRegister() http.HandlerFunc
- func (s *Server) ServeServiceWorker() http.HandlerFunc
- func (s *Server) ServeSignin() http.HandlerFunc
- func (s *Server) ServeStatic(prefix, path string) http.HandlerFunc
- func (s *Server) ServeWebAssemblyApp(filename string) http.HandlerFunc
- func (s *Server) ServeWebAssemblyRuntime(pattern string) http.HandlerFunc
- func (s *Server) WithAuth(handler http.Handler) http.HandlerFunc
- func (s *Server) WithCompression(handler http.Handler) http.HandlerFunc
- func (s *Server) WithDefaults(handler http.Handler) http.HandlerFunc
- func (s *Server) WithStrictTransportSecurity(handler http.Handler) http.HandlerFunc
- type ServiceRequest
- type ServiceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteServiceResponse ¶
func WriteServiceResponse(w http.ResponseWriter, data interface{}, err error)
WriteServiceResponse ...
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server ...
func (*Server) ServeAnimations ¶
func (s *Server) ServeAnimations() http.HandlerFunc
ServeAnimations ...
func (*Server) ServeServiceWorker ¶
func (s *Server) ServeServiceWorker() http.HandlerFunc
ServeServiceWorker ...
func (*Server) ServeStatic ¶
func (s *Server) ServeStatic(prefix, path string) http.HandlerFunc
ServeStatic ...
func (*Server) ServeWebAssemblyApp ¶
func (s *Server) ServeWebAssemblyApp(filename string) http.HandlerFunc
ServeWebAssemblyApp ...
func (*Server) ServeWebAssemblyRuntime ¶
func (s *Server) ServeWebAssemblyRuntime(pattern string) http.HandlerFunc
ServeWebAssemblyRuntime ...
func (*Server) WithCompression ¶
func (s *Server) WithCompression(handler http.Handler) http.HandlerFunc
func (*Server) WithDefaults ¶
func (s *Server) WithDefaults(handler http.Handler) http.HandlerFunc
func (*Server) WithStrictTransportSecurity ¶
func (s *Server) WithStrictTransportSecurity(handler http.Handler) http.HandlerFunc
type ServiceRequest ¶
type ServiceRequest struct { Method string `json:"method"` Params interface{} `json:"params"` }
ServiceRequest ...
func ParseServiceRequest ¶
func ParseServiceRequest(r *http.Request) (sr *ServiceRequest, err error)
ParseServiceRequest ...
type ServiceResponse ¶
type ServiceResponse struct { Data interface{} `json:"data,omitempty"` Error string `json:"error,omitempty"` }
ServiceResponse ...
Click to show internal directories.
Click to hide internal directories.