httpserver

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWebDir = "~/.streamhut/web"

DefaultWebDir is the default web directory

View Source
var DefaultWebTarURL = "https://github.com/streamhut/web/releases/latest/download/streamhut-web.tar.gz"

DefaultWebTarURL is the default web build tarball url to download

Functions

This section is empty.

Types

type Config

type Config struct {
	Port      uint
	WS        *wsserver.WS
	WebTarURL string
	WebDir    string
	TLS       bool
	TLSCert   string
	TLSKey    string
}

Config ...

type Server

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

Server ...

func NewServer

func NewServer(config *Config) *Server

NewServer ...

func (*Server) Port

func (s *Server) Port() uint

Port ...

func (*Server) Start

func (s *Server) Start() error

Start ...

Jump to

Keyboard shortcuts

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