assert

package module
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 2 Imported by: 0

README

Cloud Native Utils

License Releases Go Report Card Codacy Badge Codacy Badge

A collection of high-performance, modular utilities for enhancing testing, transactional consistency, efficiency, security and stability in cloud-native Go applications.

Module Features

  • assert: Provides tools for testing, including utility functions to assert value equality and simplify debugging during development.
  • consistency: Implements transactional log management with Event and EventType abstractions, and supports file-based persistence using JsonFileLogger and GobFileLogger for reliable data storage.
  • efficiency: Offers utilities for generating read-only channels, merging and splitting streams, concurrent processing of channel items, and partitioning key-value stores using shards for scalability and performance.
  • security: Includes encryption and decryption with AES-GCM, secure key generation, HMAC hashing, bcrypt-based password handling, and a preconfigured secure HTTP server with TLS for robust application security.
  • service: Enhances service orchestration by grouping related functionality and wrapping functions to support context-aware execution in cloud-native environments.
  • stability: Ensures service robustness with mechanisms like circuit breakers, retries for transient failures, throttling for rate limiting, debounce for execution control, and timeouts for enforcing execution limits.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func That

func That(t *testing.T, desc string, got, expected any)

That is a utility function to assert that two values are equal during a test.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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