Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientsConfig = map[string]func() ClientConfig{ setting.SourceFromGitlab: func() ClientConfig { return new(gitlab.Config) }, setting.SourceFromGithub: func() ClientConfig { return new(github.Config) }, setting.SourceFromGerrit: func() ClientConfig { return new(gerrit.Config) }, setting.SourceFromGitee: func() ClientConfig { return new(gitee.Config) }, setting.SourceFromGiteeEE: func() ClientConfig { return new(gitee.EEConfig) }, }
Functions ¶
func OpenClient ¶
func OpenClient(ch *systemconfig.CodeHost, log *zap.SugaredLogger) (client.CodeHostClient, error)
Types ¶
type ClientConfig ¶
type ClientConfig interface {
Open(id int, logger *zap.SugaredLogger) (client.CodeHostClient, error)
}
Click to show internal directories.
Click to hide internal directories.