server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package server implements a static HTTP file server for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(ctx context.Context, opts Options) error

StartServer starts the server

Types

type Options

type Options struct {
	// Address is the address to listen on
	Address string

	// StaticDir is the path to the static files directory
	StaticDir string
}

Options is the configuration for the server

Jump to

Keyboard shortcuts

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