identifier

package
v0.0.0-...-b2761b6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2014 License: GPL-3.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package whoopsie/identifier wraps libwhoopsie, and is thus the source of an anonymous and stable system id used by the Ubuntu error tracker and the Ubuntu push notifications service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Id

type Id interface {
	Generate() error
	String() string
}

an Id knows how to generate itself, and how to stringify itself.

func New

func New() Id

New creates an Identifier, but does not call Generate() on it.

type Identifier

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

Identifier is the default Id implementation.

func (*Identifier) Generate

func (id *Identifier) Generate() error

Generate makes the Identifier create the identifier itself.

func (*Identifier) String

func (id *Identifier) String() string

String returns the system identifier as a string.

Directories

Path Synopsis
Package whoopsie/identifier/testing implements a couple of Ids that are useful for testing things that use whoopsie/identifier.
Package whoopsie/identifier/testing implements a couple of Ids that are useful for testing things that use whoopsie/identifier.

Jump to

Keyboard shortcuts

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