secret

package
v0.0.0-...-a66c39b Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorableSecret

type StorableSecret struct {
	ID             string
	Value          string
	RemainingViews int
}

StorableSecret this is something that can be stored and retrieved either until it has been viewed the maximum number of times, or if it's after the expiration date

func StoreNewSecret

func StoreNewSecret(s string, numViews int) (StorableSecret, error)

Jump to

Keyboard shortcuts

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