http

package
v0.0.0-...-bf82383 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2016 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attendant

func Attendant(listen, user, password string) (homehub.Attendant, error)

Attendant returns a homehub.Attendant and a nil error

func SHA1HashedPassword

func SHA1HashedPassword(pass string) (hashed string)

SHA1HashedPassword computes and returns a SHA1 hashed password string that can be used in HTTP Auth routines

Types

type HTTPd

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

HTTPd is a HTTP based object that listens for incoming JSON messages via PUT or POST on / at the listening address.

func (*HTTPd) Stop

func (h *HTTPd) Stop()

Stop kills the service

func (*HTTPd) Use

func (h *HTTPd) Use(backend homehub.Backend)

Use sets the backend

Jump to

Keyboard shortcuts

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