Documentation ¶
Index ¶
- type ArduinoCoreServerImpl
- func (s *ArduinoCoreServerImpl) ArchiveSketch(ctx context.Context, req *rpc.ArchiveSketchRequest) (*rpc.ArchiveSketchResponse, error)
- func (s *ArduinoCoreServerImpl) BoardDetails(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetailsResponse, error)
- func (s *ArduinoCoreServerImpl) BoardList(ctx context.Context, req *rpc.BoardListRequest) (*rpc.BoardListResponse, error)
- func (s *ArduinoCoreServerImpl) BoardListAll(ctx context.Context, req *rpc.BoardListAllRequest) (*rpc.BoardListAllResponse, error)
- func (s *ArduinoCoreServerImpl) BoardListWatch(stream rpc.ArduinoCoreService_BoardListWatchServer) error
- func (s *ArduinoCoreServerImpl) BoardSearch(ctx context.Context, req *rpc.BoardSearchRequest) (*rpc.BoardSearchResponse, error)
- func (s *ArduinoCoreServerImpl) BurnBootloader(req *rpc.BurnBootloaderRequest, ...) error
- func (s *ArduinoCoreServerImpl) Compile(req *rpc.CompileRequest, stream rpc.ArduinoCoreService_CompileServer) error
- func (s *ArduinoCoreServerImpl) Create(ctx context.Context, req *rpc.CreateRequest) (*rpc.CreateResponse, error)
- func (s *ArduinoCoreServerImpl) Destroy(ctx context.Context, req *rpc.DestroyRequest) (*rpc.DestroyResponse, error)
- func (s *ArduinoCoreServerImpl) EnumerateMonitorPortSettings(ctx context.Context, req *rpc.EnumerateMonitorPortSettingsRequest) (*rpc.EnumerateMonitorPortSettingsResponse, error)
- func (s *ArduinoCoreServerImpl) GitLibraryInstall(req *rpc.GitLibraryInstallRequest, ...) error
- func (s *ArduinoCoreServerImpl) Init(req *rpc.InitRequest, stream rpc.ArduinoCoreService_InitServer) error
- func (s *ArduinoCoreServerImpl) LibraryDownload(req *rpc.LibraryDownloadRequest, ...) error
- func (s *ArduinoCoreServerImpl) LibraryInstall(req *rpc.LibraryInstallRequest, ...) error
- func (s *ArduinoCoreServerImpl) LibraryList(ctx context.Context, req *rpc.LibraryListRequest) (*rpc.LibraryListResponse, error)
- func (s *ArduinoCoreServerImpl) LibraryResolveDependencies(ctx context.Context, req *rpc.LibraryResolveDependenciesRequest) (*rpc.LibraryResolveDependenciesResponse, error)
- func (s *ArduinoCoreServerImpl) LibrarySearch(ctx context.Context, req *rpc.LibrarySearchRequest) (*rpc.LibrarySearchResponse, error)
- func (s *ArduinoCoreServerImpl) LibraryUninstall(req *rpc.LibraryUninstallRequest, ...) error
- func (s *ArduinoCoreServerImpl) LibraryUpgrade(req *rpc.LibraryUpgradeRequest, ...) error
- func (s *ArduinoCoreServerImpl) LibraryUpgradeAll(req *rpc.LibraryUpgradeAllRequest, ...) error
- func (s *ArduinoCoreServerImpl) ListProgrammersAvailableForUpload(ctx context.Context, req *rpc.ListProgrammersAvailableForUploadRequest) (*rpc.ListProgrammersAvailableForUploadResponse, error)
- func (s *ArduinoCoreServerImpl) LoadSketch(ctx context.Context, req *rpc.LoadSketchRequest) (*rpc.LoadSketchResponse, error)
- func (s *ArduinoCoreServerImpl) Monitor(stream rpc.ArduinoCoreService_MonitorServer) error
- func (s *ArduinoCoreServerImpl) NewSketch(ctx context.Context, req *rpc.NewSketchRequest) (*rpc.NewSketchResponse, error)
- func (s *ArduinoCoreServerImpl) PlatformDownload(req *rpc.PlatformDownloadRequest, ...) error
- func (s *ArduinoCoreServerImpl) PlatformInstall(req *rpc.PlatformInstallRequest, ...) error
- func (s *ArduinoCoreServerImpl) PlatformList(ctx context.Context, req *rpc.PlatformListRequest) (*rpc.PlatformListResponse, error)
- func (s *ArduinoCoreServerImpl) PlatformSearch(ctx context.Context, req *rpc.PlatformSearchRequest) (*rpc.PlatformSearchResponse, error)
- func (s *ArduinoCoreServerImpl) PlatformUninstall(req *rpc.PlatformUninstallRequest, ...) error
- func (s *ArduinoCoreServerImpl) PlatformUpgrade(req *rpc.PlatformUpgradeRequest, ...) error
- func (s *ArduinoCoreServerImpl) SetSketchDefaults(ctx context.Context, req *rpc.SetSketchDefaultsRequest) (*rpc.SetSketchDefaultsResponse, error)
- func (s *ArduinoCoreServerImpl) SupportedUserFields(ctx context.Context, req *rpc.SupportedUserFieldsRequest) (*rpc.SupportedUserFieldsResponse, error)
- func (s *ArduinoCoreServerImpl) UpdateIndex(req *rpc.UpdateIndexRequest, stream rpc.ArduinoCoreService_UpdateIndexServer) error
- func (s *ArduinoCoreServerImpl) UpdateLibrariesIndex(req *rpc.UpdateLibrariesIndexRequest, ...) error
- func (s *ArduinoCoreServerImpl) Upload(req *rpc.UploadRequest, stream rpc.ArduinoCoreService_UploadServer) error
- func (s *ArduinoCoreServerImpl) UploadUsingProgrammer(req *rpc.UploadUsingProgrammerRequest, ...) error
- func (s *ArduinoCoreServerImpl) Version(ctx context.Context, req *rpc.VersionRequest) (*rpc.VersionResponse, error)
- func (s *ArduinoCoreServerImpl) ZipLibraryInstall(req *rpc.ZipLibraryInstallRequest, ...) error
- type DebugService
- type SettingsService
- func (s *SettingsService) Delete(ctx context.Context, req *rpc.DeleteRequest) (*rpc.DeleteResponse, error)
- func (s *SettingsService) GetAll(ctx context.Context, req *rpc.GetAllRequest) (*rpc.GetAllResponse, error)
- func (s *SettingsService) GetValue(ctx context.Context, req *rpc.GetValueRequest) (*rpc.GetValueResponse, error)
- func (s *SettingsService) Merge(ctx context.Context, req *rpc.MergeRequest) (*rpc.MergeResponse, error)
- func (s *SettingsService) SetValue(ctx context.Context, val *rpc.SetValueRequest) (*rpc.SetValueResponse, error)
- func (s *SettingsService) Write(ctx context.Context, req *rpc.WriteRequest) (*rpc.WriteResponse, error)
- type SynchronizedSender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArduinoCoreServerImpl ¶
type ArduinoCoreServerImpl struct { // Force compile error for unimplemented methods rpc.UnsafeArduinoCoreServiceServer VersionString string }
ArduinoCoreServerImpl FIXMEDOC
func (*ArduinoCoreServerImpl) ArchiveSketch ¶
func (s *ArduinoCoreServerImpl) ArchiveSketch(ctx context.Context, req *rpc.ArchiveSketchRequest) (*rpc.ArchiveSketchResponse, error)
ArchiveSketch FIXMEDOC
func (*ArduinoCoreServerImpl) BoardDetails ¶
func (s *ArduinoCoreServerImpl) BoardDetails(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetailsResponse, error)
BoardDetails FIXMEDOC
func (*ArduinoCoreServerImpl) BoardList ¶
func (s *ArduinoCoreServerImpl) BoardList(ctx context.Context, req *rpc.BoardListRequest) (*rpc.BoardListResponse, error)
BoardList FIXMEDOC
func (*ArduinoCoreServerImpl) BoardListAll ¶
func (s *ArduinoCoreServerImpl) BoardListAll(ctx context.Context, req *rpc.BoardListAllRequest) (*rpc.BoardListAllResponse, error)
BoardListAll FIXMEDOC
func (*ArduinoCoreServerImpl) BoardListWatch ¶
func (s *ArduinoCoreServerImpl) BoardListWatch(stream rpc.ArduinoCoreService_BoardListWatchServer) error
BoardListWatch FIXMEDOC
func (*ArduinoCoreServerImpl) BoardSearch ¶
func (s *ArduinoCoreServerImpl) BoardSearch(ctx context.Context, req *rpc.BoardSearchRequest) (*rpc.BoardSearchResponse, error)
BoardSearch exposes to the gRPC interface the board search command
func (*ArduinoCoreServerImpl) BurnBootloader ¶
func (s *ArduinoCoreServerImpl) BurnBootloader(req *rpc.BurnBootloaderRequest, stream rpc.ArduinoCoreService_BurnBootloaderServer) error
BurnBootloader FIXMEDOC
func (*ArduinoCoreServerImpl) Compile ¶
func (s *ArduinoCoreServerImpl) Compile(req *rpc.CompileRequest, stream rpc.ArduinoCoreService_CompileServer) error
Compile FIXMEDOC
func (*ArduinoCoreServerImpl) Create ¶
func (s *ArduinoCoreServerImpl) Create(ctx context.Context, req *rpc.CreateRequest) (*rpc.CreateResponse, error)
Create FIXMEDOC
func (*ArduinoCoreServerImpl) Destroy ¶
func (s *ArduinoCoreServerImpl) Destroy(ctx context.Context, req *rpc.DestroyRequest) (*rpc.DestroyResponse, error)
Destroy FIXMEDOC
func (*ArduinoCoreServerImpl) EnumerateMonitorPortSettings ¶
func (s *ArduinoCoreServerImpl) EnumerateMonitorPortSettings(ctx context.Context, req *rpc.EnumerateMonitorPortSettingsRequest) (*rpc.EnumerateMonitorPortSettingsResponse, error)
EnumerateMonitorPortSettings FIXMEDOC
func (*ArduinoCoreServerImpl) GitLibraryInstall ¶
func (s *ArduinoCoreServerImpl) GitLibraryInstall(req *rpc.GitLibraryInstallRequest, stream rpc.ArduinoCoreService_GitLibraryInstallServer) error
GitLibraryInstall FIXMEDOC
func (*ArduinoCoreServerImpl) Init ¶
func (s *ArduinoCoreServerImpl) Init(req *rpc.InitRequest, stream rpc.ArduinoCoreService_InitServer) error
Init FIXMEDOC
func (*ArduinoCoreServerImpl) LibraryDownload ¶
func (s *ArduinoCoreServerImpl) LibraryDownload(req *rpc.LibraryDownloadRequest, stream rpc.ArduinoCoreService_LibraryDownloadServer) error
LibraryDownload FIXMEDOC
func (*ArduinoCoreServerImpl) LibraryInstall ¶
func (s *ArduinoCoreServerImpl) LibraryInstall(req *rpc.LibraryInstallRequest, stream rpc.ArduinoCoreService_LibraryInstallServer) error
LibraryInstall FIXMEDOC
func (*ArduinoCoreServerImpl) LibraryList ¶
func (s *ArduinoCoreServerImpl) LibraryList(ctx context.Context, req *rpc.LibraryListRequest) (*rpc.LibraryListResponse, error)
LibraryList FIXMEDOC
func (*ArduinoCoreServerImpl) LibraryResolveDependencies ¶
func (s *ArduinoCoreServerImpl) LibraryResolveDependencies(ctx context.Context, req *rpc.LibraryResolveDependenciesRequest) (*rpc.LibraryResolveDependenciesResponse, error)
LibraryResolveDependencies FIXMEDOC
func (*ArduinoCoreServerImpl) LibrarySearch ¶
func (s *ArduinoCoreServerImpl) LibrarySearch(ctx context.Context, req *rpc.LibrarySearchRequest) (*rpc.LibrarySearchResponse, error)
LibrarySearch FIXMEDOC
func (*ArduinoCoreServerImpl) LibraryUninstall ¶
func (s *ArduinoCoreServerImpl) LibraryUninstall(req *rpc.LibraryUninstallRequest, stream rpc.ArduinoCoreService_LibraryUninstallServer) error
LibraryUninstall FIXMEDOC
func (*ArduinoCoreServerImpl) LibraryUpgrade ¶
func (s *ArduinoCoreServerImpl) LibraryUpgrade(req *rpc.LibraryUpgradeRequest, stream rpc.ArduinoCoreService_LibraryUpgradeServer) error
LibraryUpgrade FIXMEDOC
func (*ArduinoCoreServerImpl) LibraryUpgradeAll ¶
func (s *ArduinoCoreServerImpl) LibraryUpgradeAll(req *rpc.LibraryUpgradeAllRequest, stream rpc.ArduinoCoreService_LibraryUpgradeAllServer) error
LibraryUpgradeAll FIXMEDOC
func (*ArduinoCoreServerImpl) ListProgrammersAvailableForUpload ¶
func (s *ArduinoCoreServerImpl) ListProgrammersAvailableForUpload(ctx context.Context, req *rpc.ListProgrammersAvailableForUploadRequest) (*rpc.ListProgrammersAvailableForUploadResponse, error)
ListProgrammersAvailableForUpload FIXMEDOC
func (*ArduinoCoreServerImpl) LoadSketch ¶
func (s *ArduinoCoreServerImpl) LoadSketch(ctx context.Context, req *rpc.LoadSketchRequest) (*rpc.LoadSketchResponse, error)
LoadSketch FIXMEDOC
func (*ArduinoCoreServerImpl) Monitor ¶
func (s *ArduinoCoreServerImpl) Monitor(stream rpc.ArduinoCoreService_MonitorServer) error
Monitor FIXMEDOC
func (*ArduinoCoreServerImpl) NewSketch ¶
func (s *ArduinoCoreServerImpl) NewSketch(ctx context.Context, req *rpc.NewSketchRequest) (*rpc.NewSketchResponse, error)
NewSketch FIXMEDOC
func (*ArduinoCoreServerImpl) PlatformDownload ¶
func (s *ArduinoCoreServerImpl) PlatformDownload(req *rpc.PlatformDownloadRequest, stream rpc.ArduinoCoreService_PlatformDownloadServer) error
PlatformDownload FIXMEDOC
func (*ArduinoCoreServerImpl) PlatformInstall ¶
func (s *ArduinoCoreServerImpl) PlatformInstall(req *rpc.PlatformInstallRequest, stream rpc.ArduinoCoreService_PlatformInstallServer) error
PlatformInstall FIXMEDOC
func (*ArduinoCoreServerImpl) PlatformList ¶ added in v0.0.2
func (s *ArduinoCoreServerImpl) PlatformList(ctx context.Context, req *rpc.PlatformListRequest) (*rpc.PlatformListResponse, error)
PlatformList FIXMEDOC
func (*ArduinoCoreServerImpl) PlatformSearch ¶
func (s *ArduinoCoreServerImpl) PlatformSearch(ctx context.Context, req *rpc.PlatformSearchRequest) (*rpc.PlatformSearchResponse, error)
PlatformSearch FIXMEDOC
func (*ArduinoCoreServerImpl) PlatformUninstall ¶
func (s *ArduinoCoreServerImpl) PlatformUninstall(req *rpc.PlatformUninstallRequest, stream rpc.ArduinoCoreService_PlatformUninstallServer) error
PlatformUninstall FIXMEDOC
func (*ArduinoCoreServerImpl) PlatformUpgrade ¶
func (s *ArduinoCoreServerImpl) PlatformUpgrade(req *rpc.PlatformUpgradeRequest, stream rpc.ArduinoCoreService_PlatformUpgradeServer) error
PlatformUpgrade FIXMEDOC
func (*ArduinoCoreServerImpl) SetSketchDefaults ¶
func (s *ArduinoCoreServerImpl) SetSketchDefaults(ctx context.Context, req *rpc.SetSketchDefaultsRequest) (*rpc.SetSketchDefaultsResponse, error)
SetSketchDefaults FIXMEDOC
func (*ArduinoCoreServerImpl) SupportedUserFields ¶
func (s *ArduinoCoreServerImpl) SupportedUserFields(ctx context.Context, req *rpc.SupportedUserFieldsRequest) (*rpc.SupportedUserFieldsResponse, error)
SupportedUserFields FIXMEDOC
func (*ArduinoCoreServerImpl) UpdateIndex ¶
func (s *ArduinoCoreServerImpl) UpdateIndex(req *rpc.UpdateIndexRequest, stream rpc.ArduinoCoreService_UpdateIndexServer) error
UpdateIndex FIXMEDOC
func (*ArduinoCoreServerImpl) UpdateLibrariesIndex ¶
func (s *ArduinoCoreServerImpl) UpdateLibrariesIndex(req *rpc.UpdateLibrariesIndexRequest, stream rpc.ArduinoCoreService_UpdateLibrariesIndexServer) error
UpdateLibrariesIndex FIXMEDOC
func (*ArduinoCoreServerImpl) Upload ¶
func (s *ArduinoCoreServerImpl) Upload(req *rpc.UploadRequest, stream rpc.ArduinoCoreService_UploadServer) error
Upload FIXMEDOC
func (*ArduinoCoreServerImpl) UploadUsingProgrammer ¶
func (s *ArduinoCoreServerImpl) UploadUsingProgrammer(req *rpc.UploadUsingProgrammerRequest, stream rpc.ArduinoCoreService_UploadUsingProgrammerServer) error
UploadUsingProgrammer FIXMEDOC
func (*ArduinoCoreServerImpl) Version ¶
func (s *ArduinoCoreServerImpl) Version(ctx context.Context, req *rpc.VersionRequest) (*rpc.VersionResponse, error)
Version FIXMEDOC
func (*ArduinoCoreServerImpl) ZipLibraryInstall ¶
func (s *ArduinoCoreServerImpl) ZipLibraryInstall(req *rpc.ZipLibraryInstallRequest, stream rpc.ArduinoCoreService_ZipLibraryInstallServer) error
ZipLibraryInstall FIXMEDOC
type DebugService ¶ added in v0.0.2
type DebugService struct {
dbg.UnimplementedDebugServiceServer
}
DebugService implements the `Debug` service
func (*DebugService) Debug ¶ added in v0.0.2
func (s *DebugService) Debug(stream dbg.DebugService_DebugServer) error
Debug returns a stream response that can be used to fetch data from the target. The first message passed through the `Debug` request must contain DebugRequest configuration params, not data.
func (*DebugService) GetDebugConfig ¶ added in v0.0.2
func (s *DebugService) GetDebugConfig(ctx context.Context, req *dbg.DebugConfigRequest) (*dbg.GetDebugConfigResponse, error)
GetDebugConfig return metadata about a debug session
type SettingsService ¶ added in v0.0.2
type SettingsService struct {
rpc.UnimplementedSettingsServiceServer
}
SettingsService implements the `Settings` service
func (*SettingsService) Delete ¶ added in v0.0.2
func (s *SettingsService) Delete(ctx context.Context, req *rpc.DeleteRequest) (*rpc.DeleteResponse, error)
Delete removes a key from the config file
func (*SettingsService) GetAll ¶ added in v0.0.2
func (s *SettingsService) GetAll(ctx context.Context, req *rpc.GetAllRequest) (*rpc.GetAllResponse, error)
GetAll returns a message with a string field containing all the settings currently in use, marshalled in JSON format.
func (*SettingsService) GetValue ¶ added in v0.0.2
func (s *SettingsService) GetValue(ctx context.Context, req *rpc.GetValueRequest) (*rpc.GetValueResponse, error)
GetValue returns a settings value given its key. If the key is not present an error will be returned, so that we distinguish empty settings from missing ones.
func (*SettingsService) Merge ¶ added in v0.0.2
func (s *SettingsService) Merge(ctx context.Context, req *rpc.MergeRequest) (*rpc.MergeResponse, error)
Merge applies multiple settings values at once.
func (*SettingsService) SetValue ¶ added in v0.0.2
func (s *SettingsService) SetValue(ctx context.Context, val *rpc.SetValueRequest) (*rpc.SetValueResponse, error)
SetValue updates or set a value for a certain key.
func (*SettingsService) Write ¶ added in v0.0.2
func (s *SettingsService) Write(ctx context.Context, req *rpc.WriteRequest) (*rpc.WriteResponse, error)
Write to file set in request the settings currently stored in memory. We don't have a Read() function, that's not necessary since we only want one config file to be used and that's picked up when the CLI is run as daemon, either using the default path or a custom one set with the --config-file flag.
type SynchronizedSender ¶
type SynchronizedSender[T any] struct { // contains filtered or unexported fields }
SynchronizedSender is a sender function with an extra protection for concurrent writes, if multiple threads call the Send method they will be blocked and serialized.
func NewSynchronizedSend ¶
func NewSynchronizedSend[T any](send func(T) error) *SynchronizedSender[T]
NewSynchronizedSend takes a Send function and wraps it in a SynchronizedSender
func (*SynchronizedSender[T]) Send ¶
func (s *SynchronizedSender[T]) Send(value T) error
Send the message using the underlyng stream.