auth

package
v0.0.0-...-0970860 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package auth handles connecting and managing credentials for the Hue bridge.

Index

Constants

View Source
const DEVICE_TYPE = "hue-toys"

An app name for the user registration.

Variables

View Source
var CREDENTIALS string

The file we store the credentials in.

Functions

func GetConfig

func GetConfig() (string, error)

GetConfig retrieves the stored credentials.

func SaveConfig

func SaveConfig(username string) error

SaveConfig saves the username to disk.

func Setup

func Setup() (*hue.Bridge, error)

Setup connects to the Hue bridge and registers the username if needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳