Documentation ¶
Overview ¶
Package server is a simple GRPC service performing useless memory allocations. Consider it as en example of MemLimiter integration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MemLimiter *memlimiter.Config `json:"memLimiter"` //nolint:tagliatelle Tracker *tracker.Config `json:"tracker"` ListenEndpoint string `json:"listen_endpoint"` }
Config - a top-level service configuration.
type Server ¶
type Server interface { schema.AllocatorServer // Run starts service (a blocking call). Run() error // Quit terminates service gracefully. Quit() // GRPCServer returns underlying server implementation. Only for testing purposes. GRPCServer() *grpc.Server // MemLimiter returns internal MemLimiter object. Only for testing purposes. MemLimiter() memlimiter.Service // Tracker returns statistics tracker. Only for testing purposes. Tracker() *tracker.Tracker }
Server represents Allocator service interface.
Click to show internal directories.
Click to hide internal directories.