identifier

package
v0.0.0-...-2fed64a Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: GPL-3.0, GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package identifier is the source of an anonymous and stable system id (from /var/lib/dbus/machine-id) used by 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 {
	String() string
}

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

func New

func New() (Id, error)

New creates an Identifier

type Identifier

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

Identifier is the default Id implementation.

func (*Identifier) String

func (id *Identifier) String() string

String returns the system identifier as a string.

Directories

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

Jump to

Keyboard shortcuts

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