Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { HomePath string PidFile string Version string Commit string BuildBranch string Listener net.Listener }
Options contains parameters for the New function.
type Runner ¶
type Runner struct { Cfg *setting.Cfg SQLStore db.DB SettingsProvider setting.Provider Features featuremgmt.FeatureToggles EncryptionService encryption.Internal SecretsService *manager.SecretsService SecretsMigrator secrets.Migrator UserService user.Service }
func NewRunner ¶
func NewRunner(cfg *setting.Cfg, sqlStore db.DB, settingsProvider setting.Provider, encryptionService encryption.Internal, features featuremgmt.FeatureToggles, secretsService *manager.SecretsService, secretsMigrator secrets.Migrator, userService user.Service, ) Runner
type Server ¶
type Server struct { HTTPServer *api.HTTPServer // contains filtered or unexported fields }
Server is responsible for managing the lifecycle of services.
func New ¶
func New(opts Options, cfg *setting.Cfg, httpServer *api.HTTPServer, roleRegistry accesscontrol.RoleRegistry, provisioningService provisioning.ProvisioningService, backgroundServiceProvider registry.BackgroundServiceRegistry, usageStatsProvidersRegistry registry.UsageStatsProvidersRegistry, statsCollectorService *statscollector.Service, moduleService modules.Engine, ) (*Server, error)
New returns a new instance of Server.
type TestEnv ¶
type TestEnv struct { Server *Server SQLStore *sqlstore.SQLStore NotificationService *notifications.NotificationServiceMock GRPCServer grpcserver.Provider PluginRegistry registry.Service HTTPClientProvider httpclient.Provider OAuthTokenService *oauthtokentest.Service }
func ProvideTestEnv ¶
func ProvideTestEnv( server *Server, store *sqlstore.SQLStore, ns *notifications.NotificationServiceMock, grpcServer grpcserver.Provider, pluginRegistry registry.Service, httpClientProvider httpclient.Provider, oAuthTokenService *oauthtokentest.Service, ) (*TestEnv, error)
Click to show internal directories.
Click to hide internal directories.