notify

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package notify implements a touch notification system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notify added in v0.19.0

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

Notify contains touch notification configuration.

func New added in v0.19.0

func New(log *zap.Logger, touchNotifyDelay time.Duration) *Notify

New initialises a new Notify struct.

func (*Notify) Touch added in v0.19.0

func (n *Notify) Touch() context.CancelFunc

Touch starts a goroutine, and waits for a short period. If the returned CancelFunc has not been called it sends a notification to remind the user to physically touch the Security Key.

Jump to

Keyboard shortcuts

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