Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DbPath string `json:"dbpath"` Title string `json:"title"` Repos map[string]*Repo `json:"repos"` MaxConcurrentIndexers int `json:"max-concurrent-indexers"` HealthCheckURI string `json:"health-check-uri"` VCSConfigMessages map[string]*SecretMessage `json:"vcs-config"` }
func (*Config) LoadFromFile ¶
func (*Config) ToJsonString ¶
type Repo ¶
type Repo struct { Url string `json:"url"` DisplayName string `json:"display-name"` MsBetweenPolls int `json:"ms-between-poll"` Vcs string `json:"vcs"` VcsConfigMessage *SecretMessage `json:"vcs-config"` UrlPattern *UrlPattern `json:"url-pattern"` ExcludeDotFiles bool `json:"exclude-dot-files"` EnablePollUpdates *bool `json:"enable-poll-updates"` EnablePushUpdates *bool `json:"enable-push-updates"` AutoGeneratedFiles []string `json:"auto-generated-files"` }
func (*Repo) PollUpdatesEnabled ¶
Are polling based updates enabled on this repo?
func (*Repo) PushUpdatesEnabled ¶
Are push based updates enabled on this repo?
type SecretMessage ¶
type SecretMessage []byte
SecretMessage is just like json.RawMessage but it will not marshal its value as JSON. This is to ensure that vcs-config is not marshalled into JSON and send to the UI.
func (*SecretMessage) MarshalJSON ¶
func (s *SecretMessage) MarshalJSON() ([]byte, error)
This always marshals to an empty object.
func (*SecretMessage) UnmarshalJSON ¶
func (s *SecretMessage) UnmarshalJSON(b []byte) error
See http://golang.org/pkg/encoding/json/#RawMessage.UnmarshalJSON
type UrlPattern ¶
Click to show internal directories.
Click to hide internal directories.