Documentation ¶
Index ¶
- func Router() *mux.Router
- func Serve(o *Opts) error
- type ConnMsg
- type MemoryResponseWriter
- func (m *MemoryResponseWriter) Bytes() []byte
- func (m *MemoryResponseWriter) Close()
- func (m *MemoryResponseWriter) FromJsonBytes(bs []byte) error
- func (m *MemoryResponseWriter) Fwd(w http.ResponseWriter)
- func (m *MemoryResponseWriter) Header() http.Header
- func (m *MemoryResponseWriter) JsonBytes() ([]byte, error)
- func (m *MemoryResponseWriter) Write(b []byte) (int, error)
- func (m *MemoryResponseWriter) WriteHeader(statusCode int)
- type Opts
- type ReqMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemoryResponseWriter ¶
type MemoryResponseWriter struct { Data []byte `json:"data"` Status int `json:"status"` Headers http.Header `json:"header"` // contains filtered or unexported fields }
func NewMemoryResponseWriter ¶
func NewMemoryResponseWriter() *MemoryResponseWriter
func (*MemoryResponseWriter) Bytes ¶
func (m *MemoryResponseWriter) Bytes() []byte
func (*MemoryResponseWriter) Close ¶
func (m *MemoryResponseWriter) Close()
func (*MemoryResponseWriter) FromJsonBytes ¶
func (m *MemoryResponseWriter) FromJsonBytes(bs []byte) error
func (*MemoryResponseWriter) Fwd ¶
func (m *MemoryResponseWriter) Fwd(w http.ResponseWriter)
func (*MemoryResponseWriter) Header ¶
func (m *MemoryResponseWriter) Header() http.Header
func (*MemoryResponseWriter) JsonBytes ¶
func (m *MemoryResponseWriter) JsonBytes() ([]byte, error)
func (*MemoryResponseWriter) WriteHeader ¶
func (m *MemoryResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.