service

package
v14.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Cfg                 config.Cfg
	RubyServer          *rubyserver.Server
	GitalyHookManager   gitalyhook.Manager
	TransactionManager  transaction.Manager
	StorageLocator      storage.Locator
	ClientPool          *client.Pool
	GitCmdFactory       git.CommandFactory
	Linguist            *linguist.Instance
	BackchannelRegistry *backchannel.Registry
	GitlabClient        gitlab.Client
	CatfileCache        catfile.Cache
	DiskCache           *cache.Cache
}

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) 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) GetLinguist

func (dc *Dependencies) GetLinguist() *linguist.Instance

GetLinguist returns linguist.

func (*Dependencies) GetLocator

func (dc *Dependencies) GetLocator() storage.Locator

GetLocator returns storage locator.

func (*Dependencies) GetRubyServer

func (dc *Dependencies) GetRubyServer() *rubyserver.Server

GetRubyServer returns client for the ruby processes.

func (*Dependencies) GetTxManager

func (dc *Dependencies) GetTxManager() transaction.Manager

GetTxManager returns transaction manager.

Jump to

Keyboard shortcuts

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