Directories
¶
Path | Synopsis |
---|---|
Package config intends to make loading configuration easier (https://github.com/spf13/viper is used under the hood).
|
Package config intends to make loading configuration easier (https://github.com/spf13/viper is used under the hood). |
Package grpcserver provides a gRPC server implementation with built-in interceptors for logging, metrics, recovery, and request ID handling.
|
Package grpcserver provides a gRPC server implementation with built-in interceptors for logging, metrics, recovery, and request ID handling. |
interceptor
Package interceptor provides gRPC interceptors for logging, metrics collection, panic recovery, and request ID handling.
|
Package interceptor provides gRPC interceptors for logging, metrics collection, panic recovery, and request ID handling. |
interceptor/throttle
Package throttle provides configurable gRPC interceptors for rate limiting and in-flight request limiting.
|
Package throttle provides configurable gRPC interceptors for rate limiting and in-flight request limiting. |
Package httpclient contains helpers for doing HTTP requests (for example, round trippers for retrying and rate limiting).
|
Package httpclient contains helpers for doing HTTP requests (for example, round trippers for retrying and rate limiting). |
Package httpserver provides preconfigured and ready-to-use in production HTTP server.
|
Package httpserver provides preconfigured and ready-to-use in production HTTP server. |
middleware
Package middleware contains set of middlewares for HTTP server.
|
Package middleware contains set of middlewares for HTTP server. |
middleware/throttle
Package throttle provides configurable middleware for throttling HTTP requests on the server side.
|
Package throttle provides configurable middleware for throttling HTTP requests on the server side. |
internal
|
|
inflightlimit
Package inflightlimit provides in-flight request limiting functionality to control the number of concurrent requests being processed at any given time.
|
Package inflightlimit provides in-flight request limiting functionality to control the number of concurrent requests being processed at any given time. |
libinfo
Package libinfo provides helpers for working with the library information.
|
Package libinfo provides helpers for working with the library information. |
ratelimit
Package ratelimit provides rate limiting functionality to control the rate at which requests are processed over time.
|
Package ratelimit provides rate limiting functionality to control the rate at which requests are processed over time. |
throttleconfig
Package throttleconfig provides common configuration types and functionality for request throttling that is shared between HTTP middleware and gRPC interceptors.
|
Package throttleconfig provides common configuration types and functionality for request throttling that is shared between HTTP middleware and gRPC interceptors. |
Package log provides interface for structured loggers and logf (https://github.com/ssgreg/logf) adapter implementation.
|
Package log provides interface for structured loggers and logf (https://github.com/ssgreg/logf) adapter implementation. |
logtest
Package logtest provides implementation of log.FieldLogger that allows writing tests for logging functionality.
|
Package logtest provides implementation of log.FieldLogger that allows writing tests for logging functionality. |
Package lrucache provides in-memory cache with LRU eviction policy, expiration mechanism, and Prometheus metrics.
|
Package lrucache provides in-memory cache with LRU eviction policy, expiration mechanism, and Prometheus metrics. |
Package netutil provides utilities for working with network.
|
Package netutil provides utilities for working with network. |
Package profserver provides HTTP server for profiling (pprof is used under the hood).
|
Package profserver provides HTTP server for profiling (pprof is used under the hood). |
Package restapi provides a set of helpers to implement REST API following Acronis REST API Guidelines.
|
Package restapi provides a set of helpers to implement REST API following Acronis REST API Guidelines. |
Package retry is a wrapper around github.com/cenkalti/backoff that provides do-with-retry helper functions.
|
Package retry is a wrapper around github.com/cenkalti/backoff that provides do-with-retry helper functions. |
Package service provides ready-to-use primitives for creating services in Acronis Cyber Cloud.
|
Package service provides ready-to-use primitives for creating services in Acronis Cyber Cloud. |
Package testutil provides useful functions and helpers for writing tests.
|
Package testutil provides useful functions and helpers for writing tests. |
Click to show internal directories.
Click to hide internal directories.