Documentation ¶
Index ¶
- Constants
- Variables
- func GetMainRpcClient() *wshutil.WshRpc
- func MakePlotData(ctx context.Context, blockId string) error
- func SavePlotData(ctx context.Context, blockId string, history string) error
- type WshServer
- func (ws *WshServer) BlockInfoCommand(ctx context.Context, blockId string) (*wshrpc.BlockInfoData, error)
- func (ws *WshServer) ConnConnectCommand(ctx context.Context, connName string) error
- func (ws *WshServer) ConnDisconnectCommand(ctx context.Context, connName string) error
- func (ws *WshServer) ConnEnsureCommand(ctx context.Context, connName string) error
- func (ws *WshServer) ConnListCommand(ctx context.Context) ([]string, error)
- func (ws *WshServer) ConnReinstallWshCommand(ctx context.Context, connName string) error
- func (ws *WshServer) ConnStatusCommand(ctx context.Context) ([]wshrpc.ConnStatus, error)
- func (ws *WshServer) ControllerInputCommand(ctx context.Context, data wshrpc.CommandBlockInputData) error
- func (ws *WshServer) ControllerResyncCommand(ctx context.Context, data wshrpc.CommandControllerResyncData) error
- func (ws *WshServer) ControllerStopCommand(ctx context.Context, blockId string) error
- func (ws *WshServer) CreateBlockCommand(ctx context.Context, data wshrpc.CommandCreateBlockData) (*waveobj.ORef, error)
- func (ws *WshServer) DeleteBlockCommand(ctx context.Context, data wshrpc.CommandDeleteBlockData) error
- func (ws *WshServer) EventPublishCommand(ctx context.Context, data wps.WaveEvent) error
- func (ws *WshServer) EventReadHistoryCommand(ctx context.Context, data wshrpc.CommandEventReadHistoryData) ([]*wps.WaveEvent, error)
- func (ws *WshServer) EventRecvCommand(ctx context.Context, data wps.WaveEvent) error
- func (ws *WshServer) EventSubCommand(ctx context.Context, data wps.SubscriptionRequest) error
- func (ws *WshServer) EventUnsubAllCommand(ctx context.Context) error
- func (ws *WshServer) EventUnsubCommand(ctx context.Context, data string) error
- func (ws *WshServer) FileAppendCommand(ctx context.Context, data wshrpc.CommandFileData) error
- func (ws *WshServer) FileAppendIJsonCommand(ctx context.Context, data wshrpc.CommandAppendIJsonData) error
- func (ws *WshServer) FileReadCommand(ctx context.Context, data wshrpc.CommandFileData) (string, error)
- func (ws *WshServer) FileWriteCommand(ctx context.Context, data wshrpc.CommandFileData) error
- func (ws *WshServer) GetMetaCommand(ctx context.Context, data wshrpc.CommandGetMetaData) (waveobj.MetaMapType, error)
- func (ws *WshServer) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error
- func (ws *WshServer) ResolveIdsCommand(ctx context.Context, data wshrpc.CommandResolveIdsData) (wshrpc.CommandResolveIdsRtnData, error)
- func (ws *WshServer) SetConfigCommand(ctx context.Context, data wconfig.MetaSettingsType) error
- func (ws *WshServer) SetMetaCommand(ctx context.Context, data wshrpc.CommandSetMetaData) error
- func (ws *WshServer) SetViewCommand(ctx context.Context, data wshrpc.CommandBlockSetViewData) error
- func (ws *WshServer) StreamTestCommand(ctx context.Context) chan wshrpc.RespOrErrorUnion[int]
- func (ws *WshServer) StreamWaveAiCommand(ctx context.Context, request wshrpc.OpenAiStreamRequest) chan wshrpc.RespOrErrorUnion[wshrpc.OpenAIPacketType]
- func (ws *WshServer) TestCommand(ctx context.Context, data string) error
- func (*WshServer) WshServerImpl()
Constants ¶
View Source
const ( DefaultOutputChSize = 32 DefaultInputChSize = 32 )
View Source
const SimpleId_Tab = "tab"
View Source
const SimpleId_This = "this"
Variables ¶
View Source
var SimpleId_BlockNum_Regex = regexp.MustCompile(`^\d+$`)
View Source
var WshServerImpl = WshServer{}
Functions ¶
func GetMainRpcClient ¶
returns the wavesrv main rpc client singleton
Types ¶
type WshServer ¶
type WshServer struct{}
func (*WshServer) BlockInfoCommand ¶
func (*WshServer) ConnConnectCommand ¶
func (*WshServer) ConnDisconnectCommand ¶
func (*WshServer) ConnEnsureCommand ¶
func (*WshServer) ConnListCommand ¶
func (*WshServer) ConnReinstallWshCommand ¶
func (*WshServer) ConnStatusCommand ¶
func (*WshServer) ControllerInputCommand ¶
func (*WshServer) ControllerResyncCommand ¶
func (*WshServer) ControllerStopCommand ¶
func (*WshServer) CreateBlockCommand ¶
func (*WshServer) DeleteBlockCommand ¶
func (*WshServer) EventPublishCommand ¶
func (*WshServer) EventReadHistoryCommand ¶
func (*WshServer) EventRecvCommand ¶
func (*WshServer) EventSubCommand ¶
func (*WshServer) EventUnsubAllCommand ¶
func (*WshServer) EventUnsubCommand ¶
func (*WshServer) FileAppendCommand ¶
func (*WshServer) FileAppendIJsonCommand ¶
func (*WshServer) FileReadCommand ¶
func (*WshServer) FileWriteCommand ¶
func (*WshServer) GetMetaCommand ¶
func (ws *WshServer) GetMetaCommand(ctx context.Context, data wshrpc.CommandGetMetaData) (waveobj.MetaMapType, error)
func (*WshServer) MessageCommand ¶
for testing
func (*WshServer) ResolveIdsCommand ¶
func (ws *WshServer) ResolveIdsCommand(ctx context.Context, data wshrpc.CommandResolveIdsData) (wshrpc.CommandResolveIdsRtnData, error)
func (*WshServer) SetConfigCommand ¶
func (*WshServer) SetMetaCommand ¶
func (*WshServer) SetViewCommand ¶
func (*WshServer) StreamTestCommand ¶
for testing
func (*WshServer) StreamWaveAiCommand ¶
func (ws *WshServer) StreamWaveAiCommand(ctx context.Context, request wshrpc.OpenAiStreamRequest) chan wshrpc.RespOrErrorUnion[wshrpc.OpenAIPacketType]
func (*WshServer) TestCommand ¶
func (*WshServer) WshServerImpl ¶
func (*WshServer) WshServerImpl()
Click to show internal directories.
Click to hide internal directories.