Documentation ¶
Index ¶
Constants ¶
View Source
const CHORDS_TEMPLATE = `` /* 1953-byte string literal not displayed */
TODO: the JavaScript code should go in a separate .js file Arguably, so should the HTML.
View Source
const FOOTER = `` /* 315-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frontend ¶
type Frontend struct {
// contains filtered or unexported fields
}
func NewFrontend ¶
type ResponseWriterWrapper ¶
type ResponseWriterWrapper struct {
// contains filtered or unexported fields
}
ResponseWriterWrapper struct is used to log the response
func NewResponseWriterWrapper ¶
func NewResponseWriterWrapper(w http.ResponseWriter) ResponseWriterWrapper
NewResponseWriterWrapper static function creates a wrapper for the http.ResponseWriter
func (ResponseWriterWrapper) Header ¶
func (rww ResponseWriterWrapper) Header() http.Header
Header function overwrites the http.ResponseWriter Header() function
func (ResponseWriterWrapper) String ¶
func (rww ResponseWriterWrapper) String() string
func (ResponseWriterWrapper) Write ¶
func (rww ResponseWriterWrapper) Write(buf []byte) (int, error)
func (ResponseWriterWrapper) WriteHeader ¶
func (rww ResponseWriterWrapper) WriteHeader(statusCode int)
WriteHeader function overwrites the http.ResponseWriter WriteHeader() function
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
New returns a new Server with the specified DB and address. `logFlags` is as provided to log.New - see https://pkg.go.dev/log#pkg-constants
Click to show internal directories.
Click to hide internal directories.