Versions in this module Expand all Collapse all v0 v0.0.1 Nov 4, 2019 Changes in this version + const CERTPREFIX + var ErrFolderCreation = errors.New("Error when creating a new folder !") + var ErrHasNoMDExtension = errors.New("Wrong Extension - only MD files are accecpted") + var ErrNoContent = errors.New("No Content found") + var ErrNoDirectoryListing = errors.New("No Directory Listing ") + var ErrNoReference = errors.New("No Reference found ") + var ErrNotCleanPath = errors.New("Path is not clean") + var ErrOnlyValidExtension = errors.New("Only request allowed extensions") + var ErrTagParsing = errors.New("Tags could not be parsed !") + var Routes = &Mapping + func EmptyHandler(w http.ResponseWriter, r *http.Request) + func FileResponse(w http.ResponseWriter, r *http.Request, filePath string) + func JSONErrorResponse(w http.ResponseWriter, err error) + func JSONResponse(w http.ResponseWriter, d interface{}, c int) + func NewStaticHandler(staticPath string) http.Handler + func NewSuffixHandler(path, suffix string) func(string) http.Handler + func UserFromContext(ctx context.Context) string + type APIHandler struct + ExecutablePath string + Notes string + func NewAPIHandler(notes, executablePath string, auth map[string]string, mode string) (*APIHandler, error) + func (api *APIHandler) AddGraphHandler(graphPath string) error + func (api *APIHandler) AddMisatoHandler(misatoPath string) error + func (api *APIHandler) AddUploadHandler(imagePath, videoPath string) error + func (api *APIHandler) BuildComplete(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) BuildGraph(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) GetFolderArray(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) GetMDFile(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) GetMDMeta(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) GetMetasArray(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) GetNavArray(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) GetTagsArray(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) ImageUpload(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) Images(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) Init() + func (api *APIHandler) MarkdownUpload(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) Milestone(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) Misato(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) MisatoSearch(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) Ok(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) OpenMDFile(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) SearchMDFiles(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) VideoUpload(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) Videos(w http.ResponseWriter, r *http.Request) + func (api *APIHandler) Watcher(w http.ResponseWriter, r *http.Request) + type AntNode struct + Children []*AntNode + Key string + Other map[string]interface{} + Title string + Value string + type ContextKey string + var AuthTokenPrefix = "Token " + var ContextUserKey ContextKey = "user" + type Info struct + type Mapping struct + Config map[string]string + func (m *Mapping) Get(key string) string + func (m *Mapping) Set(key, val string) + type Msg struct + Msg string + Success bool + func Success(msg string) *Msg + type Node struct + Children map[string]*Node + Content []string + Context map[string]interface{} + TagType string + func (n *Node) ConvertToAnt(name string) *AntNode + type SearchMatch struct + Context *misato.CLILog + Key string + Match string + Origin string + type Server struct + func NewServer(sConf *config.ServerConfig, pConf *config.ProjectConfig) (s *Server, err error) + func (s *Server) Base(w http.ResponseWriter, r *http.Request) + func (s *Server) Shutdown() error + func (s *Server) Start() error + type SuffixFS struct + func (nfs SuffixFS) Open(path string) (http.File, error) + type TreeStructure struct + Root *Node + func NewTreeStructure() *TreeStructure + func (s *TreeStructure) AddItem(origin, item string, additional map[string]interface{}) + func (s *TreeStructure) AddItems(origin string, items ...string) + func (s *TreeStructure) BuildAntGraph() []*AntNode + type UpdateMessage struct + Message string + MessageType string + func (um *UpdateMessage) ToJson() ([]byte, error)