Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWrongHTMLFormat wrong html format ErrWrongHTMLFormat = errors.New("wrong html format") // ErrParserNotSupported parser not supported ErrParserNotSupported = errors.New("parser not supported") )
Functions ¶
Types ¶
type HTMLServer ¶
type HTMLServer struct { }
HTMLServer is basic implement of Server interface It receive html from web extension
func (*HTMLServer) Handler ¶
func (s *HTMLServer) Handler(writer http.ResponseWriter, request *http.Request)
Handler is the handler function of server
type JSONServer ¶
type JSONServer struct { }
JSONServer is basic implement of Server interface It receive json from web extension
func (*JSONServer) Handler ¶
func (s *JSONServer) Handler(writer http.ResponseWriter, request *http.Request)
Handler is the handler function of server
Click to show internal directories.
Click to hide internal directories.