Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOrDownloadProtoc ¶
CheckOrDownloadProtoc downloads protoc to the specified path, unless it's already been downloaded. If no path is provided, it uses an OS-appropriate user cache. If the version is not specified, the latest version is fetched from GitHub. If both version and path are specified and a file already exists at the path, it checks whether the output of `protoc --version` is an exact match.
Note that this code is safe for concurrent use between multiple goroutines or processes, since it uses a lock file on disk.
Types ¶
type Downloader ¶
type GrpcEcosystem ¶
type GrpcEcosystem struct {
Type string
}
func (GrpcEcosystem) Download ¶
func (ged GrpcEcosystem) Download(version string, p Paths) (string, error)
func (GrpcEcosystem) Name ¶
func (ged GrpcEcosystem) Name() string
type GrpcPython ¶ added in v0.7.4
type GrpcPython struct{}
func (GrpcPython) Download ¶ added in v0.7.4
func (g GrpcPython) Download(version string, p Paths) (string, error)
func (GrpcPython) Name ¶ added in v0.7.4
func (g GrpcPython) Name() string
Click to show internal directories.
Click to hide internal directories.