Documentation ¶
Index ¶
- type BindCCParam
- type BindGoParam
- type Bridge
- type BridgeExternParam
- type BuildFileParser
- type CCLibConfig
- type Config
- type ConflictSymbol
- type Dependency
- type DependencyConfig
- type ExportFunc
- type Func
- type Generator
- type ImportSymbol
- type Lib
- type LinkerFlag
- type Method
- type OSType
- type Package
- type ParsedFile
- type ProtocConfig
- type SourceConfig
- type SourceParam
- type ThirdPartyDependency
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindCCParam ¶
type BindGoParam ¶
type BridgeExternParam ¶
type BridgeExternParam struct {
Funcs []Func
}
type BuildFileParser ¶
type BuildFileParser struct {
// contains filtered or unexported fields
}
func NewBuildFileParser ¶
func NewBuildFileParser(cfg *Config) *BuildFileParser
func (*BuildFileParser) Parse ¶
func (p *BuildFileParser) Parse(path string) (*ParsedFile, error)
type CCLibConfig ¶
type CCLibConfig struct {
Excludes []string `yaml:"excludes"`
}
type Config ¶
type Config struct { Dependencies []ThirdPartyDependency `yaml:"dependencies"` GlobalSymbols []string `yaml:"global_symbols"` TopLevelNamespaces []string `yaml:"top_level_namespaces"` ConflictSymbols []ConflictSymbol `yaml:"conflict_symbols"` AddSources []SourceConfig `yaml:"add_sources"` ExcludeZetaSQLDirs []string `yaml:"exclude_zetasql_dirs"` ProtobufInternalExportNameFiles []string `yaml:"protobuf_internal_export_name_files"` CCLib CCLibConfig `yaml:"cclib"` Protoc []ProtocConfig `yaml:"protoc"` }
func LoadConfig ¶
type ConflictSymbol ¶
type DependencyConfig ¶
type ExportFunc ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
type ImportSymbol ¶
type ImportSymbol = Bridge
func LoadImport ¶
func LoadImport(importYAML []byte) (*ImportSymbol, error)
type Lib ¶
type Lib struct { BasePkg string Name string Headers []string Sources []string Deps []Dependency LinkerFlags []LinkerFlag }
func (*Lib) HeaderPaths ¶
func (*Lib) NeedsBuildConstraint ¶
func (*Lib) SourcePaths ¶
type LinkerFlag ¶
type ParsedFile ¶
type ParsedFile struct {
// contains filtered or unexported fields
}
type ProtocConfig ¶
type SourceConfig ¶
type SourceParam ¶
type ThirdPartyDependency ¶
type ThirdPartyDependency struct { Name string `yaml:"name"` FQDN string `yaml:"fqdn"` Deps []DependencyConfig `yaml:"deps"` }
Click to show internal directories.
Click to hide internal directories.