Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTimeout = fmt.Errorf("unix socket timeout") ErrConnectionRefused = fmt.Errorf("unix socket connection failed") )
View Source
var (
ErrServerRequestedShutdown = errors.New("socket frontend is requested to shutdown")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Addr string
}
Client is a unix socket client that can send requests to the frontend over HTTP.
type Config ¶
type Config struct { Addr string HandlerFunc HttpHandlerFunc }
type HttpHandlerFunc ¶
type HttpHandlerFunc func(w http.ResponseWriter, r *http.Request)
HttpHandlerFunc is a function that handles HTTP requests.
Click to show internal directories.
Click to hide internal directories.