device

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier interface {
	// IsValid determines a device's validity using an opaque device token.
	IsValid(ctx context.Context, token string) (bool, string, error)

	// HasCreatedFreeAccount verifies whether the device has created a free account
	HasCreatedFreeAccount(ctx context.Context, token string) (bool, error)

	// MarkCreatedFreeAccount marks the device as having created a free account
	MarkCreatedFreeAccount(ctx context.Context, token string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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