preauth

package
v0.8.2 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: 8 modules, 20 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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