server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientDevcard      = "ClientDevcard"
	ClientListDevcards = "ClientList"
)

Variables

This section is empty.

Functions

func MdToHTML

func MdToHTML(md string) string

func NewServer

func NewServer(cfg Config, restart chan<- struct{}) *server

Types

type Config

type Config struct {
	Path string
	Data []byte
	Err  error

	Port int

	Editor string
	Opener string `toml:"custom-opener"`

	Projects []struct {
		Name string
		Dir  string
	}

	Appearance struct {
		Stylesheets      []string
		CodeHighlighting string `toml:"code-highlighting"`
	}
}

func LoadConfig

func LoadConfig() Config

func (*Config) Create

func (cfg *Config) Create() error

Jump to

Keyboard shortcuts

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