signature

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSigner

func NewSigner(token, secret string) *signer

Types

type Generator

type Generator interface {
	// Generate, generates a new signature.
	Generate(ctx context.Context) string
}

type Verifier

type Verifier interface {
	// Verify verifies the given message against signature.
	Verify(ctx context.Context, message string) bool
}

Jump to

Keyboard shortcuts

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