http

package
v0.0.0-...-ad3f877 Latest Latest
Warning

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

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

Documentation

Overview

Simple utility to start HTTP Server The server will start serving files from the current working directory If index.html doesn't exist, it will create a simple handler at / Call: StartHTTPServer()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHTTPServer

func StartHTTPServer()

Start the HTTP Server

Types

type HTTPConfig

type HTTPConfig struct {
	// Set env variable GCP_HOST. Default value is 0.0.0.0
	Host string `default:"0.0.0.0"`
	// Set env variable GCP_PORT. Default value is 8080
	Port string `default:"8080"`
}

Config for HTTP Server

Jump to

Keyboard shortcuts

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