{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package service\n\n## Variables\n\n```go\nvar ServiceMap = map[string]any{\n\t\"block\":     blockservice.BlockServiceInstance,\n\t\"object\":    \u0026objectservice.ObjectService{},\n\t\"client\":    \u0026clientservice.ClientService{},\n\t\"window\":    \u0026windowservice.WindowService{},\n\t\"workspace\": \u0026workspaceservice.WorkspaceService{},\n\t\"userinput\": \u0026userinputservice.UserInputService{},\n}\n```\n\n## Functions\n\n```go\nfunc ValidateService(serviceName string, svcObj any) error\n```\n\n```go\nfunc ValidateServiceMap() error\n```\n\n## Types\n\n```go\ntype WebCallType struct {\n\tService   string             `json:\"service\"`\n\tMethod    string             `json:\"method\"`\n\tUIContext *waveobj.UIContext `json:\"uicontext,omitempty\"`\n\tArgs      []any              `json:\"args\"`\n}\n```\n\n```go\ntype WebReturnType struct {\n\tSuccess bool                    `json:\"success,omitempty\"`\n\tError   string                  `json:\"error,omitempty\"`\n\tData    any                     `json:\"data,omitempty\"`\n\tUpdates []waveobj.WaveObjUpdate `json:\"updates,omitempty\"`\n}\n```\n\n```go\nfunc CallService(ctx context.Context, webCall WebCallType) *WebReturnType\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/service","name":"service","synopsis":"","isRedistributable":true}
