commands
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func BoardListWatchProxyToChan(ctx context.Context) (rpc.ArduinoCoreService_BoardListWatchServer, ...)
- func BurnBootloaderToServerStreams(ctx context.Context, outStrem, errStream io.Writer) rpc.ArduinoCoreService_BurnBootloaderServer
- func CompilerServerToStreams(ctx context.Context, stdOut, stderr io.Writer, progressCB rpc.TaskProgressCB) (server rpc.ArduinoCoreService_CompileServer, ...)
- func DebugServerToStreams(ctx context.Context, req *rpc.GetDebugConfigRequest, in io.Reader, ...) rpc.ArduinoCoreService_DebugServer
- func GitLibraryInstallStreamResponseToCallbackFunction(ctx context.Context, taskCB rpc.TaskProgressCB) rpc.ArduinoCoreService_GitLibraryInstallServer
- func InitStreamResponseToCallbackFunction(ctx context.Context, cb func(r *rpc.InitResponse) error) rpc.ArduinoCoreService_InitServer
- func LibraryDownloadStreamResponseToCallbackFunction(ctx context.Context, downloadCB rpc.DownloadProgressCB) rpc.ArduinoCoreService_LibraryDownloadServer
- func LibraryInstallStreamResponseToCallbackFunction(ctx context.Context, downloadCB rpc.DownloadProgressCB, ...) rpc.ArduinoCoreService_LibraryInstallServer
- func LibraryUninstallStreamResponseToCallbackFunction(ctx context.Context, taskCB rpc.TaskProgressCB) rpc.ArduinoCoreService_LibraryUninstallServer
- func LibraryUpgradeAllStreamResponseToCallbackFunction(ctx context.Context, downloadCB rpc.DownloadProgressCB, ...) rpc.ArduinoCoreService_LibraryUpgradeAllServer
- func LibraryUpgradeStreamResponseToCallbackFunction(ctx context.Context, downloadCB rpc.DownloadProgressCB, ...) rpc.ArduinoCoreService_LibraryUpgradeServer
- func MatcherFromQueryString(query string) func(*librariesindex.Library) bool
- func MonitorServerToReadWriteCloser(ctx context.Context, req *rpc.MonitorPortOpenRequest) (rpc.ArduinoCoreService_MonitorServer, io.ReadWriteCloser)
- func NewArduinoCoreServer() rpc.ArduinoCoreServiceServer
- func PlatformDownloadStreamResponseToCallbackFunction(ctx context.Context, downloadCB rpc.DownloadProgressCB) rpc.ArduinoCoreService_PlatformDownloadServer
- func PlatformInstallStreamResponseToCallbackFunction(ctx context.Context, downloadCB rpc.DownloadProgressCB, ...) rpc.ArduinoCoreService_PlatformInstallServer
- func PlatformUninstallStreamResponseToCallbackFunction(ctx context.Context, taskCB rpc.TaskProgressCB) rpc.ArduinoCoreService_PlatformUninstallServer
- func PlatformUpgradeStreamResponseToCallbackFunction(ctx context.Context, downloadCB rpc.DownloadProgressCB, ...) (rpc.ArduinoCoreService_PlatformUpgradeServer, ...)
- func UpdateIndexStreamResponseToCallbackFunction(ctx context.Context, downloadCB rpc.DownloadProgressCB) (rpc.ArduinoCoreService_UpdateIndexServer, ...)
- func UpdateLibrariesIndexStreamResponseToCallbackFunction(ctx context.Context, downloadCB rpc.DownloadProgressCB) (rpc.ArduinoCoreService_UpdateLibrariesIndexServer, ...)
- func UploadToServerStreams(ctx context.Context, outStream io.Writer, errStream io.Writer) (rpc.ArduinoCoreService_UploadServer, func() *rpc.UploadResult)
- func ZipLibraryInstallStreamResponseToCallbackFunction(ctx context.Context, taskCB rpc.TaskProgressCB) rpc.ArduinoCoreService_ZipLibraryInstallServer
- type SynchronizedSender
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcBoardListWatchProxyToChan¶added inv1.0.0
func BoardListWatchProxyToChan(ctxcontext.Context) (rpc.ArduinoCoreService_BoardListWatchServer, <-chan *rpc.BoardListWatchResponse)
BoardListWatchProxyToChan return a stream, to be used in BoardListWatch method,that proxies all the responses to a channel.
funcBurnBootloaderToServerStreams¶added inv1.0.0
func BurnBootloaderToServerStreams(ctxcontext.Context, outStrem, errStreamio.Writer)rpc.ArduinoCoreService_BurnBootloaderServer
BurnBootloaderToServerStreams return a server stream that forwards the output and error streams to the provided io.Writers
funcCompilerServerToStreams¶added inv1.0.0
func CompilerServerToStreams(ctxcontext.Context, stdOut, stderrio.Writer, progressCBrpc.TaskProgressCB) (serverrpc.ArduinoCoreService_CompileServer, resultCB func() *rpc.BuilderResult)
CompilerServerToStreams creates a gRPC CompileServer that sends the responses to the provided streams.The returned callback function can be used to retrieve the builder result after the compilation is done.
funcDebugServerToStreams¶added inv1.0.4
func DebugServerToStreams(ctxcontext.Context,req *rpc.GetDebugConfigRequest,inio.Reader, outio.Writer,sig chanos.Signal,resultCB func(*rpc.DebugResponse_Result),)rpc.ArduinoCoreService_DebugServer
DebugServerToStreams creates a debug server that proxies the data to the given io streams.The GetDebugConfigRequest is used to configure the debbuger. sig is a channel that can beused to send os.Interrupt to the debug process. resultCB is a callback function that willreceive the Debug result and closes the debug server.
funcGitLibraryInstallStreamResponseToCallbackFunction¶added inv1.0.0
func GitLibraryInstallStreamResponseToCallbackFunction(ctxcontext.Context, taskCBrpc.TaskProgressCB)rpc.ArduinoCoreService_GitLibraryInstallServer
GitLibraryInstallStreamResponseToCallbackFunction returns a gRPC stream to be used in GitLibraryInstall that sendsall responses to the callback function.
funcInitStreamResponseToCallbackFunction¶added inv1.0.0
func InitStreamResponseToCallbackFunction(ctxcontext.Context, cb func(r *rpc.InitResponse)error)rpc.ArduinoCoreService_InitServer
InitStreamResponseToCallbackFunction returns a gRPC stream to be used in Init that sendsall responses to the callback function.
funcLibraryDownloadStreamResponseToCallbackFunction¶added inv1.0.0
func LibraryDownloadStreamResponseToCallbackFunction(ctxcontext.Context, downloadCBrpc.DownloadProgressCB)rpc.ArduinoCoreService_LibraryDownloadServer
LibraryDownloadStreamResponseToCallbackFunction returns a gRPC stream to be used in LibraryDownload that sendsall responses to the callback function.
funcLibraryInstallStreamResponseToCallbackFunction¶added inv1.0.0
func LibraryInstallStreamResponseToCallbackFunction(ctxcontext.Context, downloadCBrpc.DownloadProgressCB, taskCBrpc.TaskProgressCB)rpc.ArduinoCoreService_LibraryInstallServer
LibraryInstallStreamResponseToCallbackFunction returns a gRPC stream to be used in LibraryInstall that sendsall responses to the callback function.
funcLibraryUninstallStreamResponseToCallbackFunction¶added inv1.0.0
func LibraryUninstallStreamResponseToCallbackFunction(ctxcontext.Context, taskCBrpc.TaskProgressCB)rpc.ArduinoCoreService_LibraryUninstallServer
LibraryUninstallStreamResponseToCallbackFunction returns a gRPC stream to be used in LibraryUninstall that sendsall responses to the callback function.
funcLibraryUpgradeAllStreamResponseToCallbackFunction¶added inv1.0.0
func LibraryUpgradeAllStreamResponseToCallbackFunction(ctxcontext.Context, downloadCBrpc.DownloadProgressCB, taskCBrpc.TaskProgressCB)rpc.ArduinoCoreService_LibraryUpgradeAllServer
LibraryUpgradeAllStreamResponseToCallbackFunction returns a gRPC stream to be used in LibraryUpgradeAll that sendsall responses to the callback function.
funcLibraryUpgradeStreamResponseToCallbackFunction¶added inv1.0.0
func LibraryUpgradeStreamResponseToCallbackFunction(ctxcontext.Context, downloadCBrpc.DownloadProgressCB, taskCBrpc.TaskProgressCB)rpc.ArduinoCoreService_LibraryUpgradeServer
LibraryUpgradeStreamResponseToCallbackFunction returns a gRPC stream to be used in LibraryUpgrade that sendsall responses to the callback function.
funcMatcherFromQueryString¶added inv1.0.0
func MatcherFromQueryString(querystring) func(*librariesindex.Library)bool
MatcherFromQueryString returns a closure that takes a library as aparameter and returns true if the library matches the query.
funcMonitorServerToReadWriteCloser¶added inv1.0.0
func MonitorServerToReadWriteCloser(ctxcontext.Context, req *rpc.MonitorPortOpenRequest) (rpc.ArduinoCoreService_MonitorServer,io.ReadWriteCloser)
MonitorServerToReadWriteCloser creates a monitor server that proxies the data to a ReadWriteCloser.The server is returned along with the ReadWriteCloser that can be used to send and receive datato the server. The MonitorPortOpenRequest is used to configure the monitor.
funcNewArduinoCoreServer¶added inv1.0.0
func NewArduinoCoreServer()rpc.ArduinoCoreServiceServer
NewArduinoCoreServer returns an implementation of the ArduinoCoreService gRPC servicethat uses the provided version string.
funcPlatformDownloadStreamResponseToCallbackFunction¶added inv1.0.0
func PlatformDownloadStreamResponseToCallbackFunction(ctxcontext.Context, downloadCBrpc.DownloadProgressCB)rpc.ArduinoCoreService_PlatformDownloadServer
PlatformDownloadStreamResponseToCallbackFunction returns a gRPC stream to be used in PlatformDownload that sendsall responses to the callback function.
funcPlatformInstallStreamResponseToCallbackFunction¶added inv1.0.0
func PlatformInstallStreamResponseToCallbackFunction(ctxcontext.Context, downloadCBrpc.DownloadProgressCB, taskCBrpc.TaskProgressCB)rpc.ArduinoCoreService_PlatformInstallServer
UpdateIndexStreamResponseToCallbackFunction returns a gRPC stream to be used in PlatformInstall that sendsall responses to the callback function.
funcPlatformUninstallStreamResponseToCallbackFunction¶added inv1.0.0
func PlatformUninstallStreamResponseToCallbackFunction(ctxcontext.Context, taskCBrpc.TaskProgressCB)rpc.ArduinoCoreService_PlatformUninstallServer
PlatformUninstallStreamResponseToCallbackFunction returns a gRPC stream to be used in PlatformUninstall that sendsall responses to the callback function.
funcPlatformUpgradeStreamResponseToCallbackFunction¶added inv1.0.0
func PlatformUpgradeStreamResponseToCallbackFunction(ctxcontext.Context, downloadCBrpc.DownloadProgressCB, taskCBrpc.TaskProgressCB) (rpc.ArduinoCoreService_PlatformUpgradeServer, func() *rpc.PlatformUpgradeResponse_Result)
PlatformUpgradeStreamResponseToCallbackFunction returns a gRPC stream to be used in PlatformUpgrade that sendsall responses to the callback function.
funcUpdateIndexStreamResponseToCallbackFunction¶added inv1.0.0
func UpdateIndexStreamResponseToCallbackFunction(ctxcontext.Context, downloadCBrpc.DownloadProgressCB) (rpc.ArduinoCoreService_UpdateIndexServer, func() *rpc.UpdateIndexResponse_Result)
UpdateIndexStreamResponseToCallbackFunction returns a gRPC stream to be used in UpdateIndex that sendsall responses to the callback function.
funcUpdateLibrariesIndexStreamResponseToCallbackFunction¶added inv1.0.0
func UpdateLibrariesIndexStreamResponseToCallbackFunction(ctxcontext.Context, downloadCBrpc.DownloadProgressCB) (rpc.ArduinoCoreService_UpdateLibrariesIndexServer, func() *rpc.UpdateLibrariesIndexResponse_Result)
UpdateLibrariesIndexStreamResponseToCallbackFunction returns a gRPC stream to be used in UpdateLibrariesIndex that sendsall responses to the callback function.
funcUploadToServerStreams¶added inv1.0.0
func UploadToServerStreams(ctxcontext.Context, outStreamio.Writer, errStreamio.Writer) (rpc.ArduinoCoreService_UploadServer, func() *rpc.UploadResult)
UploadToServerStreams return a server stream that forwards the output and error streams to the provided writers.It also returns a function that can be used to retrieve the result of the upload.
funcZipLibraryInstallStreamResponseToCallbackFunction¶added inv1.0.0
func ZipLibraryInstallStreamResponseToCallbackFunction(ctxcontext.Context, taskCBrpc.TaskProgressCB)rpc.ArduinoCoreService_ZipLibraryInstallServer
ZipLibraryInstallStreamResponseToCallbackFunction returns a gRPC stream to be used in ZipLibraryInstall that sendsall responses to the callback function.
Types¶
typeSynchronizedSender¶added inv1.0.0
type SynchronizedSender[Tany] struct {// contains filtered or unexported fields}
SynchronizedSender is a sender function with an extra protection forconcurrent writes, if multiple threads call the Send method they willbe blocked and serialized.
funcNewSynchronizedSend¶added inv1.0.0
func NewSynchronizedSend[Tany](send func(T)error) *SynchronizedSender[T]
NewSynchronizedSend takes a Send function and wraps it in a SynchronizedSender
func (*SynchronizedSender[T])Send¶added inv1.0.0
func (s *SynchronizedSender[T]) Send(value T)error
Send the message using the underlyng stream.
Source Files¶
- instances.go
- service.go
- service_board_details.go
- service_board_identify.go
- service_board_list.go
- service_board_listall.go
- service_board_search.go
- service_cache_clean.go
- service_check_for_updates.go
- service_compile.go
- service_debug.go
- service_debug_config.go
- service_library_download.go
- service_library_install.go
- service_library_list.go
- service_library_resolve_deps.go
- service_library_search.go
- service_library_uninstall.go
- service_library_upgrade.go
- service_monitor.go
- service_monitor_settings.go
- service_platform_download.go
- service_platform_install.go
- service_platform_search.go
- service_platform_uninstall.go
- service_platform_upgrade.go
- service_set_sketch_defaults.go
- service_settings.go
- service_sketch_archive.go
- service_sketch_load.go
- service_sketch_new.go
- service_stream_utility.go
- service_upload.go
- service_upload_burnbootloader.go
- service_upload_list_programmers.go
- utility_core.go
- utility_grpc_streaming.go
- utility_libraries_index_search_matcher.go
- utility_version.go