preauth

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2014 License: BSD-2-Clause Imports: 4 Imported by: 6

Documentation

Overview

Package preauth implements persistent storage and retrieval of preauth requests

Index

Constants

This section is empty.

Variables

Database collection handle

Functions

func Delete

func Delete(id string) (err error)

Delete preauth by id

func Initialize

func Initialize()

Initialize is an explicit init. Requires db.Initialize Indexes are applied to the collection at this time.

Types

type PreAuth

type PreAuth struct {
	Id        string
	Type      string
	NodeId    string
	Options   map[string]string
	ValidTill time.Time
}

func Load

func Load(id string) (p *PreAuth, err error)

Load preauth by id

func New

func New(id, t, nid string, options map[string]string) (p *PreAuth, err error)

New preauth takes the id, type, node id, and a map of options

Jump to

Keyboard shortcuts

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