Documentation ¶
Index ¶
- type Dependencies
- func (dc *Dependencies) GetBackchannelRegistry() *backchannel.Registry
- func (dc *Dependencies) GetBackupLocator() backup.Locator
- func (dc *Dependencies) GetBackupSink() backup.Sink
- func (dc *Dependencies) GetCatfileCache() catfile.Cache
- func (dc *Dependencies) GetCfg() config.Cfg
- func (dc *Dependencies) GetConnsPool() *client.Pool
- func (dc *Dependencies) GetDiskCache() cache.Cache
- func (dc *Dependencies) GetGitCmdFactory() git.CommandFactory
- func (dc *Dependencies) GetGitlabClient() gitlab.Client
- func (dc *Dependencies) GetHookManager() gitalyhook.Manager
- func (dc *Dependencies) GetHousekeepingManager() housekeeping.Manager
- func (dc *Dependencies) GetLimitHandler() *limithandler.LimiterMiddleware
- func (dc *Dependencies) GetLocator() storage.Locator
- func (dc *Dependencies) GetLogger() log.Logger
- func (dc *Dependencies) GetPackObjectsCache() streamcache.Cache
- func (dc *Dependencies) GetPackObjectsLimiter() limiter.Limiter
- func (dc *Dependencies) GetPartitionManager() *storagemgr.PartitionManager
- func (dc *Dependencies) GetRepositoryCounter() *counter.RepositoryCounter
- func (dc *Dependencies) GetTransactionRegistry() *storagemgr.TransactionRegistry
- func (dc *Dependencies) GetTxManager() transaction.Manager
- func (dc *Dependencies) GetUpdaterWithHooks() *updateref.UpdaterWithHooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct { Logger log.Logger Cfg config.Cfg GitalyHookManager gitalyhook.Manager TransactionManager transaction.Manager StorageLocator storage.Locator ClientPool *client.Pool GitCmdFactory git.CommandFactory BackchannelRegistry *backchannel.Registry GitlabClient gitlab.Client CatfileCache catfile.Cache DiskCache cache.Cache PackObjectsCache streamcache.Cache PackObjectsLimiter limiter.Limiter LimitHandler *limithandler.LimiterMiddleware RepositoryCounter *counter.RepositoryCounter UpdaterWithHooks *updateref.UpdaterWithHooks HousekeepingManager housekeeping.Manager TransactionRegistry *storagemgr.TransactionRegistry PartitionManager *storagemgr.PartitionManager BackupSink backup.Sink BackupLocator backup.Locator }
Dependencies assembles set of components required by different kinds of services.
func (*Dependencies) GetBackchannelRegistry ¶
func (dc *Dependencies) GetBackchannelRegistry() *backchannel.Registry
GetBackchannelRegistry returns a registry of the backchannels.
func (*Dependencies) GetBackupLocator ¶ added in v16.2.0
func (dc *Dependencies) GetBackupLocator() backup.Locator
GetBackupLocator returns the backup.Locator.
func (*Dependencies) GetBackupSink ¶ added in v16.2.0
func (dc *Dependencies) GetBackupSink() backup.Sink
GetBackupSink returns the backup.Sink.
func (*Dependencies) GetCatfileCache ¶
func (dc *Dependencies) GetCatfileCache() catfile.Cache
GetCatfileCache returns catfile cache.
func (*Dependencies) GetCfg ¶
func (dc *Dependencies) GetCfg() config.Cfg
GetCfg returns service configuration.
func (*Dependencies) GetConnsPool ¶
func (dc *Dependencies) GetConnsPool() *client.Pool
GetConnsPool returns gRPC connection pool.
func (*Dependencies) GetDiskCache ¶
func (dc *Dependencies) GetDiskCache() cache.Cache
GetDiskCache returns the disk cache.
func (*Dependencies) GetGitCmdFactory ¶
func (dc *Dependencies) GetGitCmdFactory() git.CommandFactory
GetGitCmdFactory returns git commands factory.
func (*Dependencies) GetGitlabClient ¶
func (dc *Dependencies) GetGitlabClient() gitlab.Client
GetGitlabClient returns client to access GitLab API.
func (*Dependencies) GetHookManager ¶
func (dc *Dependencies) GetHookManager() gitalyhook.Manager
GetHookManager returns hook manager.
func (*Dependencies) GetHousekeepingManager ¶
func (dc *Dependencies) GetHousekeepingManager() housekeeping.Manager
GetHousekeepingManager returns the housekeeping manager.
func (*Dependencies) GetLimitHandler ¶
func (dc *Dependencies) GetLimitHandler() *limithandler.LimiterMiddleware
GetLimitHandler returns the RPC limit handler.
func (*Dependencies) GetLocator ¶
func (dc *Dependencies) GetLocator() storage.Locator
GetLocator returns storage locator.
func (*Dependencies) GetLogger ¶ added in v16.5.0
func (dc *Dependencies) GetLogger() log.Logger
GetLogger returns the logger.
func (*Dependencies) GetPackObjectsCache ¶
func (dc *Dependencies) GetPackObjectsCache() streamcache.Cache
GetPackObjectsCache returns the pack-objects cache.
func (*Dependencies) GetPackObjectsLimiter ¶
func (dc *Dependencies) GetPackObjectsLimiter() limiter.Limiter
GetPackObjectsLimiter returns the pack-objects limiter.
func (*Dependencies) GetPartitionManager ¶ added in v16.1.0
func (dc *Dependencies) GetPartitionManager() *storagemgr.PartitionManager
GetPartitionManager returns the PartitionManager.
func (*Dependencies) GetRepositoryCounter ¶ added in v16.3.0
func (dc *Dependencies) GetRepositoryCounter() *counter.RepositoryCounter
GetRepositoryCounter returns the repository counter.
func (*Dependencies) GetTransactionRegistry ¶ added in v16.5.0
func (dc *Dependencies) GetTransactionRegistry() *storagemgr.TransactionRegistry
GetTransactionRegistry returns the TransactionRegistry.
func (*Dependencies) GetTxManager ¶
func (dc *Dependencies) GetTxManager() transaction.Manager
GetTxManager returns transaction manager.
func (*Dependencies) GetUpdaterWithHooks ¶
func (dc *Dependencies) GetUpdaterWithHooks() *updateref.UpdaterWithHooks
GetUpdaterWithHooks returns the updater with hooks executor.