utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToString

func BoolToString(b bool) string

func CurrentMMDDYYYY

func CurrentMMDDYYYY() string

func FormatMMDDYYYYToHyphenYYYYMMDD

func FormatMMDDYYYYToHyphenYYYYMMDD(dateStr string) (string, error)

func FormatMMDDYYYYToUnixMillis

func FormatMMDDYYYYToUnixMillis(dateStr string) (int64, error)

func FormatUnixMillisToMMDDYYYY

func FormatUnixMillisToMMDDYYYY(ms int64) string

func FormatUnixToMMDDYYYY

func FormatUnixToMMDDYYYY(ts int64) string

func FormatUnixToYYYYMMDD

func FormatUnixToYYYYMMDD(ts int64) string

func GetRef

func GetRef(scope dto.Scope, params ...string) string

func RegisterAllToolsetsWithTracker

func RegisterAllToolsetsWithTracker(ctx context.Context, group *toolsets.ToolsetGroup)

RegisterAllToolsetsWithTracker registers all toolsets in the group with the main tracker This ensures that findToolGroup() can find which toolset a tool belongs to

func SafeFloatToInt32

func SafeFloatToInt32(value float64, valueIfOverflow int32) int32

func SafeIntToInt32

func SafeIntToInt32(value int, valueIfOverflow int32) int32

func ToBoolPtr

func ToBoolPtr(b bool) *bool

Types

type LicenseInfo

type LicenseInfo struct {
	AccountID      string
	ModuleLicenses map[string]bool // Map of module ID to license status
	IsValid        bool
}

func InitLicenseValidation

func InitLicenseValidation(ctx context.Context, config *config.McpServerConfig) (*LicenseInfo, error)

initLicenseValidation creates a license client and validates licenses

type LicenseStatus

type LicenseStatus string
const LicenseActive LicenseStatus = "ACTIVE"

Jump to

Keyboard shortcuts

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