Documentation
¶
Index ¶
- func CloneRepository(cfg *Config) error
- func CreateCacheDir() error
- func FileURL(service *Service, file string) string
- func ProtoRepoRoot(service *Service) string
- func RepoRoot(service *Service) string
- func ServiceMapFile(service *Service) string
- func SubPath(service *Service, file string) string
- type AnalyzedMethod
- type Analyzer
- type Auth
- type Config
- type Method
- type MethodMap
- type Option
- type Proto
- type Renderer
- type Service
- type ServiceTracer
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneRepository ¶
func CreateCacheDir ¶
func CreateCacheDir() error
func ProtoRepoRoot ¶
func ServiceMapFile ¶
Types ¶
type AnalyzedMethod ¶
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
func NewAnalyzer ¶
type Config ¶
type Config struct {
Auth Auth `yaml:"auth"`
Services []*Service `yaml:"services"`
Output string `yaml:"-"`
}
func LoadConfig ¶
type Method ¶
type Method struct {
Pkg string `yaml:"pkg"`
GeneratedPath string `yaml:"generated_path"`
Service string `yaml:"service"`
Name string `yaml:"name"`
InputType string `yaml:"input_type"`
OutputType string `yaml:"output_type"`
}
func ParseProto ¶
func (*Method) GeneratedPathToRepo ¶
func (*Method) MangledName ¶
type MethodMap ¶
type MethodMap map[string]*AnalyzedMethod
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
type Service ¶
type Service struct {
Name string `yaml:"name"`
Repo string `yaml:"repo"`
Entry string `yaml:"entry"`
Proto Proto `yaml:"proto"`
// contains filtered or unexported fields
}
func (*Service) ProtoPaths ¶
func (*Service) ProtoRepoName ¶
type ServiceTracer ¶
type ServiceTracer struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *Config) *ServiceTracer
func (*ServiceTracer) Run ¶
func (t *ServiceTracer) Run() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.