hash

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesHash

func BytesHash(input []byte) string

BytesHash computes SHA-256 hash of byte slice

func ComputeToolHash

func ComputeToolHash(serverName, toolName string, inputSchema interface{}) string

ComputeToolHash computes a SHA256 hash for a tool (alias for ToolHash that doesn't return error)

func StringHash

func StringHash(input string) string

StringHash computes SHA-256 hash of a string

func ToolHash

func ToolHash(serverName, toolName string, parametersSchema interface{}) (string, error)

ToolHash computes SHA-256 hash for tool change detection Format: sha256(serverName + toolName + parametersSchemaJSON)

func VerifyToolHash

func VerifyToolHash(serverName, toolName string, parametersSchema interface{}, storedHash string) (bool, error)

VerifyToolHash verifies if the current tool matches the stored hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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