Documentation ¶
Index ¶
Constants ¶
View Source
const ( StorageUnknown = -1 StorageNeo4j = 0 )
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
Types ¶
type Config ¶
type Config struct { GitlabHost string `conf:"required,short:g,env:GITLAB_HOST"` GitlabToken string `conf:"required,short:t,env:GITLAB_TOKEN"` GitlabMaxRPS int `conf:"default:1,short:r,env:GITLAB_MAX_RPS"` Storage string `conf:"required,short:s,env:STORAGE_BACKEND"` StorageCleanup bool `conf:"default:false,short:c,env:STORAGE_CLEANUP"` DefaultRefName string `conf:"default:HEAD,short:d,env:DEFAULT_REF_NAME"` HTTPClientTimeout time.Duration `conf:"default:5s,short:x,env:HTTP_CLIENT_TIMEOUT"` HTTPClientMaxRetry int `conf:"default:2,short,m,env:HTTP_CLIENT_MAX_RETRY"` HTTPClientMaxRetryWait time.Duration `conf:"default:30s,short:w,env:HTTP_CLIENT_MAX_RETRY_WAIT"` HTTPClientMinRetryWait time.Duration `conf:"default:5s,short:n,env:HTTP_CLIENT_MIN_RETRY_WAIT"` NumberOfWorkers int `conf:"default:20,short:c,env:NUMBER_OF_WORKERS"` // There should be global config composition maybe? For not this lives here // though this is the global log level LogLevel int `conf:"default:1,env:LOG_LEVEL"` LogFormat string `conf:"default:json,env:LOG_FORMAT"` }
type Crawler ¶
type Crawler struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new project crawler The caller is responsible for closing the neo4j driver and session the Crawl func handles this already.
type RawTrigger ¶ added in v0.14.0
type RemoteInclude ¶
type StringArray ¶
type StringArray []string
func (*StringArray) UnmarshalYAML ¶
func (a *StringArray) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.