draincloud-core/internal/plugin/domain/common.go
2024-10-19 19:05:34 -04:00

43 lines
1.2 KiB
Go

package domain
type InitPluginRequest struct {
Name string `json:"name"`
Version int `json:"version"`
Namespace string `json:"namespace"`
}
type PluginPage struct {
Name string `json:"name"`
Version int `json:"version"`
Namespace string `json:"namespace"`
Path string `json:"path"`
}
type PluginAction struct {
Name string `json:"name"`
Version int `json:"version"`
Namespace string `json:"namespace"`
RequiredResolveParams []string `json:"required_resolve_params"`
OptionalResolveParams []string `json:"optional_resolve_params"`
WithActions bool `json:"with_actions"`
Async bool `json:"async"`
}
type PluginComponent struct {
Name string `json:"name"`
Version int `json:"version"`
Namespace string `json:"namespace"`
RequiredResolveParams []string `json:"required_resolve_params"`
OptionalResolveParams []string `json:"optional_resolve_params"`
WithActions bool `json:"with_actions"`
Async bool `json:"async"`
}
type Ping struct {
Payload any `json:"payload"`
}
type Pong struct {
Payload any `json:"payload"`
}