Documentation ¶
Index ¶
Constants ¶
View Source
const ( HEADER_USER = "X-Tellus-Market-User" HEADER_REQUESTID = "X-Tellus-Market-RequestID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountRequest ¶
type ErrorMessage ¶
type ErrorMessage struct {
Error string `json:"error"`
}
type LoggingResponseWriter ¶
type LoggingResponseWriter struct { StatusCode int HeaderMap http.Header Size int // contains filtered or unexported fields }
func NewLoggingResponseWriter ¶
func NewLoggingResponseWriter(w http.ResponseWriter) *LoggingResponseWriter
func (*LoggingResponseWriter) Header ¶
func (w *LoggingResponseWriter) Header() http.Header
func (*LoggingResponseWriter) WriteHeader ¶
func (w *LoggingResponseWriter) WriteHeader(statusCode int)
type Server ¶
type Server struct { Config *config.Config Upstream *url.URL Logger *log.Entry CounterChan chan<- CountRequest }
func (*Server) ListenAndServe ¶
func (*Server) StartCountRequestLoop ¶
func (s *Server) StartCountRequestLoop() chan<- CountRequest
Click to show internal directories.
Click to hide internal directories.