Documentation ¶
Overview ¶
libldbrest contains all the logic implementing the REST server described in http://godoc.org/github.com/teepark/ldbrest.
Index ¶
Constants ¶
View Source
const (
ABSMAX = 1000
)
Variables ¶
This section is empty.
Functions ¶
func InitRouter ¶
func InitRouter(prefix string) *httprouter.Router
InitRouter creates an *httprouter.Router and sets the endpoints to run the ldbrest server
Types ¶
type SwappableHandler ¶
type SwappableHandler struct {
// contains filtered or unexported fields
}
An atomic.Value that deals specifically with http.Handlers, and which can act as an http.Handler itself by grabbing and running the currently held Handler.
func (*SwappableHandler) Load ¶
func (sh *SwappableHandler) Load() http.Handler
func (*SwappableHandler) ServeHTTP ¶
func (sh *SwappableHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*SwappableHandler) Store ¶
func (sh *SwappableHandler) Store(handler http.Handler)
Click to show internal directories.
Click to hide internal directories.