Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionDTO ¶
type ActionDTO struct {
Name string `json:"name"`
Kind string `json:"kind"`
Description string `json:"description"`
Method string `json:"method"`
Path string `json:"path"`
SourceFile string `json:"source_file,omitempty"`
SourceLine int `json:"source_line,omitempty"`
SuccessStatus int `json:"success_status,omitempty"`
FlowSchemaDriven bool `json:"flow_schema_driven,omitempty"`
ReqSchemaName string `json:"request_schema,omitempty"`
ResSchemaName string `json:"response_schema,omitempty"`
ReqType string `json:"req_type"`
ResType string `json:"res_type"`
Tags []string `json:"tags"`
Node string `json:"node,omitempty"`
Category string `json:"category"`
IsSystem bool `json:"is_system"`
RequiresAuth bool `json:"requires_auth"`
RequiredRoles []string `json:"required_roles,omitempty"`
RequiredPerms []string `json:"required_permissions,omitempty"`
RequiredFeatures []string `json:"required_features,omitempty"`
Idempotent bool `json:"idempotent"`
TimeoutMs int64 `json:"timeout_ms,omitempty"`
RetryMax int `json:"retry_max,omitempty"`
RateLimit string `json:"rate_limit,omitempty"`
CacheTTLMs int64 `json:"cache_ttl_ms,omitempty"`
ConcurrencyLimit int32 `json:"concurrency_limit,omitempty"`
Deduplicated bool `json:"deduplicated"`
Coalesced bool `json:"coalesced"`
ReqFields []FieldMeta `json:"req_fields"`
ResFields []FieldMeta `json:"res_fields"`
}
type ExecuteReq ¶
type ExecuteReq struct {
ActionName string `json:"action_name" validate:"required"`
Payload json.RawMessage `json:"payload,omitempty"`
Identity *StudioIdentityDTO `json:"identity,omitempty"`
}
type ExecutionRecord ¶
type ExecutionRecord struct {
ID string `json:"id"`
ActionName string `json:"action_name"`
Timestamp time.Time `json:"timestamp"`
Status int `json:"status"`
Success bool `json:"success"`
DurationMs int64 `json:"duration_ms"`
DurationUs int64 `json:"duration_us"`
DurationFormatted string `json:"duration_formatted"`
TotalTraceUs int64 `json:"total_trace_us"`
Payload any `json:"payload,omitempty"`
Response any `json:"response,omitempty"`
Error any `json:"error,omitempty"`
Waterfall []obs.CompletedSpan `json:"waterfall"`
}
type SecurityUniverse ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Handler ¶ added in v0.3.1
Handler mounts the Studio UI and API action bindings on a standard HTTP handler. It can be attached to an application mux without exposing unrelated actions.
func (*Service) SetActionProvider ¶ added in v0.9.0
func (s *Service) SetActionProvider(provider action.ActionProvider)
SetActionProvider configures a live source for the Studio action catalog. The provider is queried before each catalog, execute, scenario, and security request. Passing nil stops refreshes and retains the last catalog snapshot.
func (*Service) WorkbenchAPIActions ¶ added in v0.10.0
WorkbenchAPIActions returns the Studio catalog, execution, history, and scenario endpoints without the embedded UI or /system/security reflection endpoint. Hosts that provide their own UI or security route can compose these actions without conflicting with those host-owned paths. Actions retains the complete default Studio surface.