simpleserver

package module
v0.0.0-...-d2cfcf3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

README

simple-server

A (WIP) simple web server

Documentation

Index

Constants

View Source
const Version = "0.0.0-alpha"

Variables

View Source
var (
	//go:embed example/src example/pages example/package.json
	//go:embed example/postcss.config.js example/tailwind.config.js
	//go:embed example/tsconfig.json example/vite.config.js
	Files embed.FS
)

Functions

This section is empty.

Types

type Server

type Server struct {
	Fiber  *fiber.App
	Config *app.Config
	// contains filtered or unexported fields
}

func New

func New(confPath string) *Server

func (*Server) AddOn

func (s *Server) AddOn(m func(*fiber.Ctx) error)

func (*Server) AwaitAndClose

func (s *Server) AwaitAndClose(serverClosed chan struct{})

func (*Server) Pages

func (s *Server) Pages()

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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