Documentation ¶
Index ¶
- Constants
- Variables
- func HandleFunc(typ string, handler func(w io.Writer, r *Request))
- func NotFound(w io.Writer, r *Request)
- func RenderError(w io.Writer, err error)
- func RenderResponse(w io.Writer, body []byte)
- type Client
- type ConnState
- type Handler
- type HandlerFunc
- type Request
- type Response
- type ServeMux
- type Server
Constants ¶
View Source
const ( StatusSuccess = 0 StatusError = 1 )
golum status code.
Variables ¶
View Source
var DefaultServeMux = &ServeMux{}
DefaultServeMux : TODO
View Source
var ErrServerClosed = errors.New("server closed")
ErrServerClosed : TODO
Functions ¶
func HandleFunc ¶
HandleFunc : TODO
Types ¶
type Client ¶
type Client struct { // SocketName specifies the UNIX domain socket file name. SocketName string Timeout time.Duration }
Client is a golum client.
type HandlerFunc ¶
HandlerFunc : TODO
func (HandlerFunc) ServeSocket ¶
func (f HandlerFunc) ServeSocket(w io.Writer, r *Request)
ServeSocket : TODO
type Request ¶
Request represents a golum request.
func NewRequest ¶
NewRequest returns a new Request given a type and body.
type ServeMux ¶
type ServeMux struct {
// contains filtered or unexported fields
}
ServeMux : TODO
func (*ServeMux) HandleFunc ¶
HandleFunc : TODO
Click to show internal directories.
Click to hide internal directories.