Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grpc ¶
type Grpc struct { Ctx context.Context // context for graceful shutdown Listen string // address to listen Restorer service.Restorer // service to handle restore requests GracePeriod time.Duration // grace period for graceful shutdown Wg *sync.WaitGroup }
Grpc is a configuration for gRPC server.
type Http ¶
type Http struct { Ctx context.Context Listen uint16 Router *mux.Router GracePeriod time.Duration Wg *sync.WaitGroup }
Http is a configuration for http server.
type StorageBackend ¶
type StorageBackend struct { SourceCfg *Redis // short term storage StorageCfg []*Redis // long term storage nodes ChanStop chan struct{} // channel to stop the storage backend worker Wg *sync.WaitGroup }
StorageBackend is a struct that holds the configuration for the storage backend
Click to show internal directories.
Click to hide internal directories.