auth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package auth provides authentication utilities for the perf-analysis service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateViewToken

func GenerateViewToken(secret, taskID string, expireAt int64) string

GenerateViewToken generates an HMAC-SHA256 token for URL authentication.

func ValidateViewToken

func ValidateViewToken(secret, taskID string, expireAt int64, token string) bool

ValidateViewToken validates an HMAC-SHA256 token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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