wshclient

package
v0.11.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 9 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultOutputChSize = 32
	DefaultInputChSize  = 32
)
View Source
const BareClientRoute = "bare"

Variables

View Source
var WshServerImpl = WshServer{}

Functions

func ActivityCommand added in v0.9.3

func ActivityCommand(w *wshutil.WshRpc, data wshrpc.ActivityUpdate, opts *wshrpc.RpcOpts) error

command "activity", wshserver.ActivityCommand

func AiSendMessageCommand added in v0.9.2

func AiSendMessageCommand(w *wshutil.WshRpc, data wshrpc.AiMessageData, opts *wshrpc.RpcOpts) error

command "aisendmessage", wshserver.AiSendMessageCommand

func AuthenticateCommand

func AuthenticateCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) (wshrpc.CommandAuthenticateRtnData, error)

command "authenticate", wshserver.AuthenticateCommand

func AuthenticateTokenCommand added in v0.11.0

command "authenticatetoken", wshserver.AuthenticateTokenCommand

func BlockInfoCommand

func BlockInfoCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) (*wshrpc.BlockInfoData, error)

command "blockinfo", wshserver.BlockInfoCommand

func ConnConnectCommand

func ConnConnectCommand(w *wshutil.WshRpc, data wshrpc.ConnRequest, opts *wshrpc.RpcOpts) error

command "connconnect", wshserver.ConnConnectCommand

func ConnDisconnectCommand

func ConnDisconnectCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error

command "conndisconnect", wshserver.ConnDisconnectCommand

func ConnEnsureCommand

func ConnEnsureCommand(w *wshutil.WshRpc, data wshrpc.ConnExtData, opts *wshrpc.RpcOpts) error

command "connensure", wshserver.ConnEnsureCommand

func ConnListCommand

func ConnListCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]string, error)

command "connlist", wshserver.ConnListCommand

func ConnReinstallWshCommand

func ConnReinstallWshCommand(w *wshutil.WshRpc, data wshrpc.ConnExtData, opts *wshrpc.RpcOpts) error

command "connreinstallwsh", wshserver.ConnReinstallWshCommand

func ConnStatusCommand

func ConnStatusCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]wshrpc.ConnStatus, error)

command "connstatus", wshserver.ConnStatusCommand

func ConnUpdateWshCommand added in v0.11.0

func ConnUpdateWshCommand(w *wshutil.WshRpc, data wshrpc.RemoteInfo, opts *wshrpc.RpcOpts) (bool, error)

command "connupdatewsh", wshserver.ConnUpdateWshCommand

func ControllerAppendOutputCommand added in v0.11.0

func ControllerAppendOutputCommand(w *wshutil.WshRpc, data wshrpc.CommandControllerAppendOutputData, opts *wshrpc.RpcOpts) error

command "controllerappendoutput", wshserver.ControllerAppendOutputCommand

func ControllerInputCommand

func ControllerInputCommand(w *wshutil.WshRpc, data wshrpc.CommandBlockInputData, opts *wshrpc.RpcOpts) error

command "controllerinput", wshserver.ControllerInputCommand

func ControllerResyncCommand

func ControllerResyncCommand(w *wshutil.WshRpc, data wshrpc.CommandControllerResyncData, opts *wshrpc.RpcOpts) error

command "controllerresync", wshserver.ControllerResyncCommand

func ControllerStopCommand

func ControllerStopCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error

command "controllerstop", wshserver.ControllerStopCommand

func CreateBlockCommand

func CreateBlockCommand(w *wshutil.WshRpc, data wshrpc.CommandCreateBlockData, opts *wshrpc.RpcOpts) (waveobj.ORef, error)

command "createblock", wshserver.CreateBlockCommand

func CreateSubBlockCommand added in v0.9.0

func CreateSubBlockCommand(w *wshutil.WshRpc, data wshrpc.CommandCreateSubBlockData, opts *wshrpc.RpcOpts) (waveobj.ORef, error)

command "createsubblock", wshserver.CreateSubBlockCommand

func DeleteBlockCommand

func DeleteBlockCommand(w *wshutil.WshRpc, data wshrpc.CommandDeleteBlockData, opts *wshrpc.RpcOpts) error

command "deleteblock", wshserver.DeleteBlockCommand

func DeleteSubBlockCommand added in v0.9.0

func DeleteSubBlockCommand(w *wshutil.WshRpc, data wshrpc.CommandDeleteBlockData, opts *wshrpc.RpcOpts) error

command "deletesubblock", wshserver.DeleteSubBlockCommand

func DismissWshFailCommand added in v0.10.0

func DismissWshFailCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error

command "dismisswshfail", wshserver.DismissWshFailCommand

func DisposeCommand added in v0.9.0

func DisposeCommand(w *wshutil.WshRpc, data wshrpc.CommandDisposeData, opts *wshrpc.RpcOpts) error

command "dispose", wshserver.DisposeCommand

func EventPublishCommand

func EventPublishCommand(w *wshutil.WshRpc, data wps.WaveEvent, opts *wshrpc.RpcOpts) error

command "eventpublish", wshserver.EventPublishCommand

func EventReadHistoryCommand

func EventReadHistoryCommand(w *wshutil.WshRpc, data wshrpc.CommandEventReadHistoryData, opts *wshrpc.RpcOpts) ([]*wps.WaveEvent, error)

command "eventreadhistory", wshserver.EventReadHistoryCommand

func EventRecvCommand

func EventRecvCommand(w *wshutil.WshRpc, data wps.WaveEvent, opts *wshrpc.RpcOpts) error

command "eventrecv", wshserver.EventRecvCommand

func EventSubCommand

func EventSubCommand(w *wshutil.WshRpc, data wps.SubscriptionRequest, opts *wshrpc.RpcOpts) error

command "eventsub", wshserver.EventSubCommand

func EventUnsubAllCommand

func EventUnsubAllCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) error

command "eventunsuball", wshserver.EventUnsubAllCommand

func EventUnsubCommand

func EventUnsubCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error

command "eventunsub", wshserver.EventUnsubCommand

func FileAppendCommand

func FileAppendCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) error

command "fileappend", wshserver.FileAppendCommand

func FileAppendIJsonCommand

func FileAppendIJsonCommand(w *wshutil.WshRpc, data wshrpc.CommandAppendIJsonData, opts *wshrpc.RpcOpts) error

command "fileappendijson", wshserver.FileAppendIJsonCommand

func FileCreateCommand added in v0.9.3

func FileCreateCommand(w *wshutil.WshRpc, data wshrpc.CommandFileCreateData, opts *wshrpc.RpcOpts) error

command "filecreate", wshserver.FileCreateCommand

func FileDeleteCommand added in v0.9.3

func FileDeleteCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) error

command "filedelete", wshserver.FileDeleteCommand

func FileInfoCommand added in v0.9.3

func FileInfoCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) (*wshrpc.WaveFileInfo, error)

command "fileinfo", wshserver.FileInfoCommand

func FileListCommand added in v0.9.3

func FileListCommand(w *wshutil.WshRpc, data wshrpc.CommandFileListData, opts *wshrpc.RpcOpts) ([]*wshrpc.WaveFileInfo, error)

command "filelist", wshserver.FileListCommand

func FileReadCommand

func FileReadCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) (string, error)

command "fileread", wshserver.FileReadCommand

func FileWriteCommand

func FileWriteCommand(w *wshutil.WshRpc, data wshrpc.CommandFileData, opts *wshrpc.RpcOpts) error

command "filewrite", wshserver.FileWriteCommand

func FocusWindowCommand added in v0.10.0

func FocusWindowCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error

command "focuswindow", wshserver.FocusWindowCommand

func GetBareRpcClient added in v0.10.0

func GetBareRpcClient() *wshutil.WshRpc

func GetMetaCommand

func GetMetaCommand(w *wshutil.WshRpc, data wshrpc.CommandGetMetaData, opts *wshrpc.RpcOpts) (waveobj.MetaMapType, error)

command "getmeta", wshserver.GetMetaCommand

func GetUpdateChannelCommand added in v0.9.1

func GetUpdateChannelCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) (string, error)

command "getupdatechannel", wshserver.GetUpdateChannelCommand

func GetVarCommand added in v0.9.3

command "getvar", wshserver.GetVarCommand

func MessageCommand

func MessageCommand(w *wshutil.WshRpc, data wshrpc.CommandMessageData, opts *wshrpc.RpcOpts) error

command "message", wshserver.MessageCommand

func NotifyCommand added in v0.8.9

func NotifyCommand(w *wshutil.WshRpc, data wshrpc.WaveNotificationOptions, opts *wshrpc.RpcOpts) error

command "notify", wshserver.NotifyCommand

func PathCommand added in v0.10.2

func PathCommand(w *wshutil.WshRpc, data wshrpc.PathCommandData, opts *wshrpc.RpcOpts) (string, error)

command "path", wshserver.PathCommand

func RemoteFileDeleteCommand

func RemoteFileDeleteCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error

command "remotefiledelete", wshserver.RemoteFileDeleteCommand

func RemoteFileInfoCommand

func RemoteFileInfoCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) (*wshrpc.FileInfo, error)

command "remotefileinfo", wshserver.RemoteFileInfoCommand

func RemoteFileJoinCommand

func RemoteFileJoinCommand(w *wshutil.WshRpc, data []string, opts *wshrpc.RpcOpts) (*wshrpc.FileInfo, error)

command "remotefilejoin", wshserver.RemoteFileJoinCommand

func RemoteFileRenameCommand added in v0.10.0

func RemoteFileRenameCommand(w *wshutil.WshRpc, data [2]string, opts *wshrpc.RpcOpts) error

command "remotefilerename", wshserver.RemoteFileRenameCommand

func RemoteFileTouchCommand added in v0.10.0

func RemoteFileTouchCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error

command "remotefiletouch", wshserver.RemoteFileTouchCommand

func RemoteGetInfoCommand added in v0.11.0

func RemoteGetInfoCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) (wshrpc.RemoteInfo, error)

command "remotegetinfo", wshserver.RemoteGetInfoCommand

func RemoteInstallRcFilesCommand added in v0.11.0

func RemoteInstallRcFilesCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) error

command "remoteinstallrcfiles", wshserver.RemoteInstallRcFilesCommand

func RemoteMkdirCommand added in v0.10.0

func RemoteMkdirCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error

command "remotemkdir", wshserver.RemoteMkdirCommand

func RemoteStreamCpuDataCommand

func RemoteStreamCpuDataCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[wshrpc.TimeSeriesData]

command "remotestreamcpudata", wshserver.RemoteStreamCpuDataCommand

func RemoteStreamFileCommand

command "remotestreamfile", wshserver.RemoteStreamFileCommand

func RemoteWriteFileCommand

func RemoteWriteFileCommand(w *wshutil.WshRpc, data wshrpc.CommandRemoteWriteFileData, opts *wshrpc.RpcOpts) error

command "remotewritefile", wshserver.RemoteWriteFileCommand

func ResolveIdsCommand

command "resolveids", wshserver.ResolveIdsCommand

func RouteAnnounceCommand

func RouteAnnounceCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) error

command "routeannounce", wshserver.RouteAnnounceCommand

func RouteUnannounceCommand

func RouteUnannounceCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) error

command "routeunannounce", wshserver.RouteUnannounceCommand

func SetConfigCommand

func SetConfigCommand(w *wshutil.WshRpc, data wshrpc.MetaSettingsType, opts *wshrpc.RpcOpts) error

command "setconfig", wshserver.SetConfigCommand

func SetConnectionsConfigCommand added in v0.10.0

func SetConnectionsConfigCommand(w *wshutil.WshRpc, data wshrpc.ConnConfigRequest, opts *wshrpc.RpcOpts) error

command "setconnectionsconfig", wshserver.SetConnectionsConfigCommand

func SetMetaCommand

func SetMetaCommand(w *wshutil.WshRpc, data wshrpc.CommandSetMetaData, opts *wshrpc.RpcOpts) error

command "setmeta", wshserver.SetMetaCommand

func SetVarCommand added in v0.9.3

func SetVarCommand(w *wshutil.WshRpc, data wshrpc.CommandVarData, opts *wshrpc.RpcOpts) error

command "setvar", wshserver.SetVarCommand

func SetViewCommand

func SetViewCommand(w *wshutil.WshRpc, data wshrpc.CommandBlockSetViewData, opts *wshrpc.RpcOpts) error

command "setview", wshserver.SetViewCommand

func StreamCpuDataCommand

func StreamCpuDataCommand(w *wshutil.WshRpc, data wshrpc.CpuDataRequest, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[wshrpc.TimeSeriesData]

command "streamcpudata", wshserver.StreamCpuDataCommand

func StreamTestCommand

func StreamTestCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) chan wshrpc.RespOrErrorUnion[int]

command "streamtest", wshserver.StreamTestCommand

func StreamWaveAiCommand

command "streamwaveai", wshserver.StreamWaveAiCommand

func TestCommand

func TestCommand(w *wshutil.WshRpc, data string, opts *wshrpc.RpcOpts) error

command "test", wshserver.TestCommand

func VDomAsyncInitiationCommand added in v0.9.0

func VDomAsyncInitiationCommand(w *wshutil.WshRpc, data vdom.VDomAsyncInitiationRequest, opts *wshrpc.RpcOpts) error

command "vdomasyncinitiation", wshserver.VDomAsyncInitiationCommand

func VDomCreateContextCommand added in v0.9.0

func VDomCreateContextCommand(w *wshutil.WshRpc, data vdom.VDomCreateContext, opts *wshrpc.RpcOpts) (*waveobj.ORef, error)

command "vdomcreatecontext", wshserver.VDomCreateContextCommand

func VDomRenderCommand added in v0.9.0

command "vdomrender", wshserver.VDomRenderCommand

func VDomUrlRequestCommand added in v0.9.2

command "vdomurlrequest", wshserver.VDomUrlRequestCommand

func WaitForRouteCommand added in v0.9.0

func WaitForRouteCommand(w *wshutil.WshRpc, data wshrpc.CommandWaitForRouteData, opts *wshrpc.RpcOpts) (bool, error)

command "waitforroute", wshserver.WaitForRouteCommand

func WaveInfoCommand added in v0.9.1

func WaveInfoCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) (*wshrpc.WaveInfoData, error)

command "waveinfo", wshserver.WaveInfoCommand

func WebSelectorCommand

func WebSelectorCommand(w *wshutil.WshRpc, data wshrpc.CommandWebSelectorData, opts *wshrpc.RpcOpts) ([]string, error)

command "webselector", wshserver.WebSelectorCommand

func WorkspaceListCommand added in v0.10.0

func WorkspaceListCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]wshrpc.WorkspaceInfoData, error)

command "workspacelist", wshserver.WorkspaceListCommand

func WshActivityCommand added in v0.9.3

func WshActivityCommand(w *wshutil.WshRpc, data map[string]int, opts *wshrpc.RpcOpts) error

command "wshactivity", wshserver.WshActivityCommand

func WslDefaultDistroCommand added in v0.9.0

func WslDefaultDistroCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) (string, error)

command "wsldefaultdistro", wshserver.WslDefaultDistroCommand

func WslListCommand added in v0.9.0

func WslListCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]string, error)

command "wsllist", wshserver.WslListCommand

func WslStatusCommand added in v0.9.0

func WslStatusCommand(w *wshutil.WshRpc, opts *wshrpc.RpcOpts) ([]wshrpc.ConnStatus, error)

command "wslstatus", wshserver.WslStatusCommand

Types

type WshServer added in v0.10.0

type WshServer struct{}

func (*WshServer) WshServerImpl added in v0.10.0

func (*WshServer) WshServerImpl()

Jump to

Keyboard shortcuts

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