docit

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLResponse

type HTMLResponse struct {
	HTML string
}

HTMLResponse is the message replied by server.

type MarkdownRequest

type MarkdownRequest struct {
	Text string `json:"text"`
}

MarkdownRequest is the message sent by client. Reply HTMLResponse.

func (*MarkdownRequest) Handle

func (msg *MarkdownRequest) Handle(stream as.ContextStream) (reply interface{})

Handle handles msg.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents docit server

func NewServer

func NewServer(lg *log.Logger) *Server

NewServer creates a new server instance.

func (*Server) Close

func (server *Server) Close()

Close shutdown the server.

func (*Server) Run

func (server *Server) Run() error

Run runs the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL