Documentation ¶
Index ¶
- type Option
- type OptionFunc
- type Server
- func (s *Server) Addr() string
- func (s *Server) Decode(_ http.ResponseWriter, r *http.Request, v interface{}) error
- func (s *Server) HandleIndex() http.HandlerFunc
- func (s *Server) HandleTemplate(files ...string) http.HandlerFunc
- func (s *Server) Port() uint16
- func (s *Server) Respond(w http.ResponseWriter, _ *http.Request, data interface{}, status int)
- func (s *Server) Run(ctx context.Context, addr string)
- func (s *Server) Serve(ctx context.Context, version string)
- func (s *Server) SetAddr(addr string)
- func (s *Server) SetPort(port uint16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionFunc ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) HandleIndex ¶
func (s *Server) HandleIndex() http.HandlerFunc
func (*Server) HandleTemplate ¶
func (s *Server) HandleTemplate(files ...string) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.