auth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(method string) string

GenerateKey creates the MD5 hash for KMI API authentication. method is the API endpoint name (e.g., "getForecasts").

func GenerateKeyWithDate

func GenerateKeyWithDate(method string, date time.Time) string

GenerateKeyWithDate allows specifying date for testing. Computes MD5 hash of "secret;method;DD/MM/YYYY" format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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