common

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateMetaId

func CalculateMetaId(address string) string

CalculateMetaId calculates MetaID (sha256(address))

func GetParentPath

func GetParentPath(path string) string

GetParentPath extracts the parent path from a path Example: /protocols/simplebuzz -> /protocols

func NormalizeContentType

func NormalizeContentType(contentType string) string

NormalizeContentType normalizes the content-type

func NormalizePath

func NormalizePath(path string) string

NormalizePath normalizes a path

func ValidateOperation

func ValidateOperation(operation string) bool

ValidateOperation validates if the operation type is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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