Documentation ¶
Overview ¶
Http package allow the user to expose a a Pandora Server as a http server
No authentication is done here. This server considers that the importer of this package, is responsible to implement the authentication and authorization of messages BEFORE calling the handler provided here.
Index ¶
- Constants
- Variables
- type Handler
- func (ph *Handler) Ack(req *http.Request) interface{}
- func (ph *Handler) Enqueue(req *http.Request) interface{}
- func (ph *Handler) FetchAndLockLatest(req *http.Request) interface{}
- func (ph *Handler) ServeAdmin(req *http.Request) interface{}
- func (ph *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Constants ¶
View Source
const ( ErrNotFound = pandora.ApiError("not found") ErrPOSTRequired = pandora.ApiError("POST is required") )
Variables ¶
View Source
var (
ErrServerPanic = errors.New("bad behavior from the server....")
)
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler is the base type used to process http request to a pandora server
func (*Handler) FetchAndLockLatest ¶
func (*Handler) ServeAdmin ¶
Click to show internal directories.
Click to hide internal directories.