Movatterモバイル変換


[0]ホーム

URL:


commands

package
v1.3.1Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2025 License:GPL-3.0Imports:63Imported by:19

Details

Repository

github.com/arduino/arduino-cli

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcBoardListWatchProxyToChanadded inv1.0.0

BoardListWatchProxyToChan return a stream, to be used in BoardListWatch method,that proxies all the responses to a channel.

funcBurnBootloaderToServerStreamsadded 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

funcCompilerServerToStreamsadded 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.

funcDebugServerToStreamsadded inv1.0.4

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.

funcGitLibraryInstallStreamResponseToCallbackFunctionadded 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.

funcInitStreamResponseToCallbackFunctionadded 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.

funcLibraryDownloadStreamResponseToCallbackFunctionadded 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.

funcLibraryInstallStreamResponseToCallbackFunctionadded 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.

funcLibraryUninstallStreamResponseToCallbackFunctionadded 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.

funcLibraryUpgradeAllStreamResponseToCallbackFunctionadded 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.

funcLibraryUpgradeStreamResponseToCallbackFunctionadded 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.

funcMatcherFromQueryStringadded 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.

funcMonitorServerToReadWriteCloseradded inv1.0.0

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.

funcNewArduinoCoreServeradded inv1.0.0

func NewArduinoCoreServer()rpc.ArduinoCoreServiceServer

NewArduinoCoreServer returns an implementation of the ArduinoCoreService gRPC servicethat uses the provided version string.

funcPlatformDownloadStreamResponseToCallbackFunctionadded 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.

funcPlatformInstallStreamResponseToCallbackFunctionadded 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.

funcPlatformUninstallStreamResponseToCallbackFunctionadded 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.

funcPlatformUpgradeStreamResponseToCallbackFunctionadded 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.

funcUpdateIndexStreamResponseToCallbackFunctionadded 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.

funcUpdateLibrariesIndexStreamResponseToCallbackFunctionadded 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.

funcUploadToServerStreamsadded 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.

funcZipLibraryInstallStreamResponseToCallbackFunctionadded 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

typeSynchronizedSenderadded 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.

funcNewSynchronizedSendadded 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])Sendadded inv1.0.0

func (s *SynchronizedSender[T]) Send(value T)error

Send the message using the underlyng stream.

Source Files

View all Source files

Directories

PathSynopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp