Documentation ¶
Overview ¶
Package localrun provides helper methods for locally building a Kythe indexed repo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var LanguageMap map[string]Language = makeLanguageMap()
LanguageMap is a mapping from the string name of each language to the enum value.
Functions ¶
This section is empty.
Types ¶
type Language ¶
type Language int
Language defines
const ( Cxx Language Go Java Jvm Protobuf Python // TODO: Python isn't shipping in Kythe right now by default. Textproto // TODO: Textproto isn't shipping in Kythe right now by default. TypeScript )
This list must be kept in sync with Language.String.
func KnownLanguage ¶
type LanguageSet ¶
type LanguageSet map[Language]struct{}
LanguageSet is a set implementation that tracks langages.
func AllLanguages ¶
func AllLanguages() LanguageSet
AllLanguages returns a language set that contains all available languages.
func (LanguageSet) Has ¶
func (ls LanguageSet) Has(l Language) bool
Has checks if the provided language is in the set.
func (LanguageSet) Set ¶
func (ls LanguageSet) Set(l Language)
Set the provided language in the set.
func (LanguageSet) String ¶
func (ls LanguageSet) String() string
String implements Stringer.String.
type Runner ¶
type Runner struct { // Generally useful configuration KytheRelease string WorkingDir string OutputDir string WorkerPoolSize int CacheSize *datasize.Size // Building/extracting options. Languages LanguageSet Targets []string // Serving configuration options. Port int Hostname string PublicResources string // Timeout for indexing. Timeout time.Duration // contains filtered or unexported fields }
Runner is responsible for indexing the repo with Kythe.
func (*Runner) Index ¶
Index indexes the extracted data. Index is a reimplementation of the https://github.com/kythe/kythe/blob/master/kythe/release/kythe.sh script's --index mode.
func (*Runner) PostProcess ¶
PostProcess postprocesses the supplied indexed data.