Documentation
¶
Index ¶
- Constants
- Variables
- func AsJson(w http.ResponseWriter, v interface{}) error
- func ResponseToHttp(w http.ResponseWriter, response *ApiRequestResponse)
- type ApiRequestResponse
- type Cleanabel
- type Content
- type ContentFile
- type ContentMap
- type ContentType
- type HTTPServer
- type HouseKeeperTimer
- type Page
- type Session
Constants ¶
View Source
const ErrNotAllowedWhileLoggedIn = 460
View Source
const HeaderNameContentType = "Content-Type"
Variables ¶
View Source
var FileCachePath string
Functions ¶
func AsJson ¶
func AsJson(w http.ResponseWriter, v interface{}) error
func ResponseToHttp ¶
func ResponseToHttp(w http.ResponseWriter, response *ApiRequestResponse)
Types ¶
type ApiRequestResponse ¶
type Content ¶
type Content struct {
Content ContentType
Owner string
Type string
Collection string
}
func (*Content) SetContentObject ¶
type ContentFile ¶
func (*ContentFile) ToBsonD ¶
func (f *ContentFile) ToBsonD() *bson.D
type ContentMap ¶
type ContentMap struct {
C map[string]interface{}
}
func (*ContentMap) ToBsonD ¶
func (m *ContentMap) ToBsonD() *bson.D
type HTTPServer ¶
type HTTPServer struct {
IsStarted bool
// contains filtered or unexported fields
}
HTTPServer to handle Stuff
func CreateNew ¶
func CreateNew(port int, staticFilePath string, config *lutra.LutraConfig) (*HTTPServer, error)
CreateNew creates a default HttpServer
func (*HTTPServer) Shutdown ¶
func (h *HTTPServer) Shutdown()
type HouseKeeperTimer ¶
type HouseKeeperTimer struct {
Quit chan bool
// contains filtered or unexported fields
}
func StartNewHouseKeeper ¶
func StartNewHouseKeeper(server *HTTPServer, trigger time.Duration) *HouseKeeperTimer
Click to show internal directories.
Click to hide internal directories.