portal

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: MIT Imports: 13 Imported by: 0

README

Guest Portal

This serves as an external portal server for UniFi.

It is very simple and simply presents a Terms and Conditions page which the guest must accept before connecting to the network.

The terms can be overridden by providing an alternative template to the default templates/terms.html

Development Environment

In bash, set environment with:

eval $(sed -e 's/^.\{1,\}$/export &/' .env)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func NewGuestHandler

func NewGuestHandler(username, password, unifiBaseURL string, tmpl *template.Template) http.Handler

Types

type TimeProvider added in v0.0.3

type TimeProvider interface {
	Unix(relative time.Duration) int64
	HTTP(relative time.Duration) string
}
var Clock TimeProvider = defaultTimeProvider{}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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