daemon

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

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

ArchiveSketch FIXMEDOC

func (*ArduinoCoreServerImpl) BoardDetails

BoardDetails FIXMEDOC

func (*ArduinoCoreServerImpl) BoardList

BoardList FIXMEDOC

func (*ArduinoCoreServerImpl) BoardListAll

BoardListAll FIXMEDOC

func (*ArduinoCoreServerImpl) BoardListWatch

BoardListWatch FIXMEDOC

func (*ArduinoCoreServerImpl) BoardSearch

BoardSearch exposes to the gRPC interface the board search command

func (*ArduinoCoreServerImpl) BurnBootloader

BurnBootloader FIXMEDOC

func (*ArduinoCoreServerImpl) Compile

Compile FIXMEDOC

func (*ArduinoCoreServerImpl) Create

Create FIXMEDOC

func (*ArduinoCoreServerImpl) Destroy

Destroy FIXMEDOC

func (*ArduinoCoreServerImpl) EnumerateMonitorPortSettings

EnumerateMonitorPortSettings FIXMEDOC

func (*ArduinoCoreServerImpl) GitLibraryInstall

GitLibraryInstall FIXMEDOC

func (*ArduinoCoreServerImpl) Init

Init FIXMEDOC

func (*ArduinoCoreServerImpl) LibraryDownload

LibraryDownload FIXMEDOC

func (*ArduinoCoreServerImpl) LibraryInstall

LibraryInstall FIXMEDOC

func (*ArduinoCoreServerImpl) LibraryList

LibraryList FIXMEDOC

func (*ArduinoCoreServerImpl) LibraryResolveDependencies

LibraryResolveDependencies FIXMEDOC

func (*ArduinoCoreServerImpl) LibrarySearch

LibrarySearch FIXMEDOC

func (*ArduinoCoreServerImpl) LibraryUninstall

LibraryUninstall FIXMEDOC

func (*ArduinoCoreServerImpl) LibraryUpgrade

LibraryUpgrade FIXMEDOC

func (*ArduinoCoreServerImpl) LibraryUpgradeAll

LibraryUpgradeAll FIXMEDOC

func (*ArduinoCoreServerImpl) ListProgrammersAvailableForUpload

ListProgrammersAvailableForUpload FIXMEDOC

func (*ArduinoCoreServerImpl) LoadSketch

LoadSketch FIXMEDOC

func (*ArduinoCoreServerImpl) Monitor

Monitor FIXMEDOC

func (*ArduinoCoreServerImpl) NewSketch

NewSketch FIXMEDOC

func (*ArduinoCoreServerImpl) PlatformDownload

PlatformDownload FIXMEDOC

func (*ArduinoCoreServerImpl) PlatformInstall

PlatformInstall FIXMEDOC

func (*ArduinoCoreServerImpl) PlatformList added in v0.0.2

PlatformList FIXMEDOC

func (*ArduinoCoreServerImpl) PlatformSearch

PlatformSearch FIXMEDOC

func (*ArduinoCoreServerImpl) PlatformUninstall

PlatformUninstall FIXMEDOC

func (*ArduinoCoreServerImpl) PlatformUpgrade

PlatformUpgrade FIXMEDOC

func (*ArduinoCoreServerImpl) SetSketchDefaults

SetSketchDefaults FIXMEDOC

func (*ArduinoCoreServerImpl) SupportedUserFields

SupportedUserFields FIXMEDOC

func (*ArduinoCoreServerImpl) UpdateIndex

UpdateIndex FIXMEDOC

func (*ArduinoCoreServerImpl) UpdateLibrariesIndex

UpdateLibrariesIndex FIXMEDOC

func (*ArduinoCoreServerImpl) Upload

Upload FIXMEDOC

func (*ArduinoCoreServerImpl) UploadUsingProgrammer

UploadUsingProgrammer FIXMEDOC

func (*ArduinoCoreServerImpl) Version

Version FIXMEDOC

func (*ArduinoCoreServerImpl) ZipLibraryInstall

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

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

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

Delete removes a key from the config file

func (*SettingsService) GetAll added in v0.0.2

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

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

Merge applies multiple settings values at once.

func (*SettingsService) SetValue added in v0.0.2

SetValue updates or set a value for a certain key.

func (*SettingsService) Write added in v0.0.2

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL