Documentation ¶ Index ¶ type Server func New(ctx context.Context, path string, log *logrus.Logger) (*Server, error) func (s *Server) Run() (http.Handler, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { // contains filtered or unexported fields } Server serves a HTML rendered Markdown preview of a Markdown file specified at path. Whenever the path is written to, the rendering will update dynamically. func New ¶ func New(ctx context.Context, path string, log *logrus.Logger) (*Server, error) New creates a new Server given some markdown path. func (*Server) Run ¶ func (s *Server) Run() (http.Handler, error) Run returns handlers to run the server. Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.