refactor: mover .go de tipos Go a functions/{domain}/ para compilación unificada
Los archivos .go de tipos ahora viven junto a las funciones en functions/{domain}/
(mismo paquete Go), resolviendo errores de compilación por tipos no encontrados
(Option, Pair, Result, etc.). Los .md de metadata permanecen en types/{domain}/
con file_path actualizado a functions/. Se elimina types.go duplicado de infra.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
package infra
|
|
||||||
|
|
||||||
// ContainerInfo representa la información básica de un contenedor Docker.
|
|
||||||
type ContainerInfo struct {
|
|
||||||
ID string
|
|
||||||
Name string
|
|
||||||
Image string
|
|
||||||
Status string
|
|
||||||
State string
|
|
||||||
Ports string
|
|
||||||
Created string
|
|
||||||
Labels map[string]string
|
|
||||||
}
|
|
||||||
|
|
||||||
// ImageInfo representa la información básica de una imagen Docker local.
|
|
||||||
type ImageInfo struct {
|
|
||||||
ID string
|
|
||||||
Repository string
|
|
||||||
Tag string
|
|
||||||
Size string
|
|
||||||
Created string
|
|
||||||
}
|
|
||||||
|
|
||||||
// MetabaseClient holds the connection details for a Metabase instance API.
|
|
||||||
type MetabaseClient struct {
|
|
||||||
BaseURL string // e.g. "http://localhost:3000"
|
|
||||||
Token string // session token or API key
|
|
||||||
}
|
|
||||||
+1
-1
@@ -11,5 +11,5 @@ definition: |
|
|||||||
description: "Tipo de error base del registry. Referenciado como error_type por funciones impuras."
|
description: "Tipo de error base del registry. Referenciado como error_type por funciones impuras."
|
||||||
tags: [error, base, impure]
|
tags: [error, base, impure]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/core/error.go"
|
file_path: "functions/core/error.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ definition: |
|
|||||||
description: "Tipo suma generico que representa un valor opcional: Some(T) o None. Alternativa a punteros nil para modelar ausencia de valor de forma explicita."
|
description: "Tipo suma generico que representa un valor opcional: Some(T) o None. Alternativa a punteros nil para modelar ausencia de valor de forma explicita."
|
||||||
tags: [option, sum, nullable, functional, generic]
|
tags: [option, sum, nullable, functional, generic]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/core/option.go"
|
file_path: "functions/core/option.go"
|
||||||
---
|
---
|
||||||
|
|
||||||
## Notas
|
## Notas
|
||||||
|
|||||||
+1
-1
@@ -12,5 +12,5 @@ definition: |
|
|||||||
description: "Tipo producto generico que agrupa dos valores de tipos potencialmente distintos. Util para ZipSlices y operaciones que devuelven dos resultados."
|
description: "Tipo producto generico que agrupa dos valores de tipos potencialmente distintos. Util para ZipSlices y operaciones que devuelven dos resultados."
|
||||||
tags: [pair, tuple, product, generic]
|
tags: [pair, tuple, product, generic]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/core/pair.go"
|
file_path: "functions/core/pair.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ definition: |
|
|||||||
description: "Tipo suma generico que representa exito (Ok) o fallo (Err). Permite componer operaciones que pueden fallar sin recurrir a multiples returns (T, error)."
|
description: "Tipo suma generico que representa exito (Ok) o fallo (Err). Permite componer operaciones que pueden fallar sin recurrir a multiples returns (T, error)."
|
||||||
tags: [result, sum, error-handling, functional, generic]
|
tags: [result, sum, error-handling, functional, generic]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/core/result.go"
|
file_path: "functions/core/result.go"
|
||||||
---
|
---
|
||||||
|
|
||||||
## Notas
|
## Notas
|
||||||
|
|||||||
@@ -13,5 +13,5 @@ definition: |
|
|||||||
description: "Rango de red CIDR parseado con network, broadcast y numero de hosts."
|
description: "Rango de red CIDR parseado con network, broadcast y numero de hosts."
|
||||||
tags: [cybersecurity, network, cidr, ip]
|
tags: [cybersecurity, network, cidr, ip]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/cybersecurity/cidr_block.go"
|
file_path: "functions/cybersecurity/cidr_block.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -12,5 +12,5 @@ definition: |
|
|||||||
description: "Tipo suma para resultados de escaneo TCP: Open (con banner), Closed o Filtered."
|
description: "Tipo suma para resultados de escaneo TCP: Open (con banner), Closed o Filtered."
|
||||||
tags: [cybersecurity, port, scan, network]
|
tags: [cybersecurity, port, scan, network]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/cybersecurity/port_result.go"
|
file_path: "functions/cybersecurity/port_result.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -12,5 +12,5 @@ definition: |
|
|||||||
description: "Tipo suma para resultados de deteccion de amenazas: Clean, Suspicious o Malicious."
|
description: "Tipo suma para resultados de deteccion de amenazas: Clean, Suspicious o Malicious."
|
||||||
tags: [cybersecurity, threat, detection, sqli]
|
tags: [cybersecurity, threat, detection, sqli]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/cybersecurity/threat_result.go"
|
file_path: "functions/cybersecurity/threat_result.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -11,5 +11,5 @@ definition: |
|
|||||||
description: "Tipo suma que clasifica un dato como Normal o Outlier con su z-score. Usado por DetectOutliers."
|
description: "Tipo suma que clasifica un dato como Normal o Outlier con su z-score. Usado por DetectOutliers."
|
||||||
tags: [datascience, outlier, anomaly, statistics]
|
tags: [datascience, outlier, anomaly, statistics]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/datascience/outlier_result.go"
|
file_path: "functions/datascience/outlier_result.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -13,5 +13,5 @@ definition: |
|
|||||||
description: "Resultado de Bollinger Bands con bandas superior, media e inferior."
|
description: "Resultado de Bollinger Bands con bandas superior, media e inferior."
|
||||||
tags: [finance, bollinger, indicator, bands]
|
tags: [finance, bollinger, indicator, bands]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/finance/bollinger_result.go"
|
file_path: "functions/finance/bollinger_result.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -13,5 +13,5 @@ definition: |
|
|||||||
description: "Resultado de maximo drawdown con el valor de caida y los indices de inicio y fin."
|
description: "Resultado de maximo drawdown con el valor de caida y los indices de inicio y fin."
|
||||||
tags: [finance, drawdown, risk, metric]
|
tags: [finance, drawdown, risk, metric]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/finance/drawdown_result.go"
|
file_path: "functions/finance/drawdown_result.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -15,5 +15,5 @@ definition: |
|
|||||||
description: "Vela de mercado con precios de apertura, maximo, minimo, cierre y volumen."
|
description: "Vela de mercado con precios de apertura, maximo, minimo, cierre y volumen."
|
||||||
tags: [finance, market, candle, ohlcv]
|
tags: [finance, market, candle, ohlcv]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/finance/ohlcv.go"
|
file_path: "functions/finance/ohlcv.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -14,5 +14,5 @@ definition: |
|
|||||||
description: "Evento de trade individual en un mercado. Contiene simbolo, precio, volumen y timestamp."
|
description: "Evento de trade individual en un mercado. Contiene simbolo, precio, volumen y timestamp."
|
||||||
tags: [finance, market, tick, trade]
|
tags: [finance, market, tick, trade]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/finance/tick.go"
|
file_path: "functions/finance/tick.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ definition: |
|
|||||||
description: "Información básica de un contenedor Docker: ID, nombre, imagen, estado, puertos, labels."
|
description: "Información básica de un contenedor Docker: ID, nombre, imagen, estado, puertos, labels."
|
||||||
tags: [docker, container, infra]
|
tags: [docker, container, infra]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/infra/container_info.go"
|
file_path: "functions/infra/container_info.go"
|
||||||
---
|
---
|
||||||
|
|
||||||
## Ejemplo
|
## Ejemplo
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ definition: |
|
|||||||
description: "Información básica de una imagen Docker local: ID, repositorio, tag, tamaño, fecha."
|
description: "Información básica de una imagen Docker local: ID, repositorio, tag, tamaño, fecha."
|
||||||
tags: [docker, image, infra]
|
tags: [docker, image, infra]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/infra/image_info.go"
|
file_path: "functions/infra/image_info.go"
|
||||||
---
|
---
|
||||||
|
|
||||||
## Ejemplo
|
## Ejemplo
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ definition: |
|
|||||||
description: "Cliente para la API REST de Metabase. Contiene la URL base de la instancia y el token de autenticacion (session token o API key)."
|
description: "Cliente para la API REST de Metabase. Contiene la URL base de la instancia y el token de autenticacion (session token o API key)."
|
||||||
tags: [metabase, api, client, infra]
|
tags: [metabase, api, client, infra]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/infra/metabase_client.go"
|
file_path: "functions/infra/metabase_client.go"
|
||||||
---
|
---
|
||||||
|
|
||||||
## Notas
|
## Notas
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ definition: |
|
|||||||
description: "Resultado de la ejecucion de un comando del sistema con stdout, stderr y codigo de salida."
|
description: "Resultado de la ejecucion de un comando del sistema con stdout, stderr y codigo de salida."
|
||||||
tags: [shell, command, process, result]
|
tags: [shell, command, process, result]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/shell/cmd_result.go"
|
file_path: "functions/shell/cmd_result.go"
|
||||||
---
|
---
|
||||||
|
|
||||||
## Notas
|
## Notas
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Modelo base que provee dimensiones de terminal, estilos y manejo de errores comunes a todas las vistas TUI."
|
description: "Modelo base que provee dimensiones de terminal, estilos y manejo de errores comunes a todas las vistas TUI."
|
||||||
tags: [tui, base, model, component]
|
tags: [tui, base, model, component]
|
||||||
uses_types: [styles_go_tui]
|
uses_types: [styles_go_tui]
|
||||||
file_path: "types/tui/base_model.go"
|
file_path: "functions/tui/base_model.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Dialogo de confirmacion Si/No interactivo. Embeds BaseModel. Implementa tea.Model."
|
description: "Dialogo de confirmacion Si/No interactivo. Embeds BaseModel. Implementa tea.Model."
|
||||||
tags: [tui, confirm, dialog, component, interactive]
|
tags: [tui, confirm, dialog, component, interactive]
|
||||||
uses_types: [base_model_go_tui]
|
uses_types: [base_model_go_tui]
|
||||||
file_path: "types/tui/confirm_model.go"
|
file_path: "functions/tui/confirm_model.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Lista con filtrado por texto en tiempo real. Embeds ListModel y añade busqueda interactiva."
|
description: "Lista con filtrado por texto en tiempo real. Embeds ListModel y añade busqueda interactiva."
|
||||||
tags: [tui, list, filter, component, interactive]
|
tags: [tui, list, filter, component, interactive]
|
||||||
uses_types: [list_model_go_tui, list_item_go_tui]
|
uses_types: [list_model_go_tui, list_item_go_tui]
|
||||||
file_path: "types/tui/filtered_list_model.go"
|
file_path: "functions/tui/filtered_list_model.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Item individual de una lista TUI con titulo, descripcion y valor arbitrario."
|
description: "Item individual de una lista TUI con titulo, descripcion y valor arbitrario."
|
||||||
tags: [tui, list, component]
|
tags: [tui, list, component]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/tui/list_item.go"
|
file_path: "functions/tui/list_item.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Componente lista seleccionable con cursor, scroll y seleccion simple o multiple. Implementa tea.Model."
|
description: "Componente lista seleccionable con cursor, scroll y seleccion simple o multiple. Implementa tea.Model."
|
||||||
tags: [tui, list, component, interactive]
|
tags: [tui, list, component, interactive]
|
||||||
uses_types: [list_item_go_tui, styles_go_tui]
|
uses_types: [list_item_go_tui, styles_go_tui]
|
||||||
file_path: "types/tui/list_model.go"
|
file_path: "functions/tui/list_model.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Gestor de multiples barras de progreso simultaneas. Implementa tea.Model."
|
description: "Gestor de multiples barras de progreso simultaneas. Implementa tea.Model."
|
||||||
tags: [tui, progress, multi, component]
|
tags: [tui, progress, multi, component]
|
||||||
uses_types: [progress_model_go_tui, styles_go_tui]
|
uses_types: [progress_model_go_tui, styles_go_tui]
|
||||||
file_path: "types/tui/multi_progress_model.go"
|
file_path: "functions/tui/multi_progress_model.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Barra de progreso con porcentaje, ETA y tiempo transcurrido. Implementa tea.Model."
|
description: "Barra de progreso con porcentaje, ETA y tiempo transcurrido. Implementa tea.Model."
|
||||||
tags: [tui, progress, component, interactive]
|
tags: [tui, progress, component, interactive]
|
||||||
uses_types: [styles_go_tui]
|
uses_types: [styles_go_tui]
|
||||||
file_path: "types/tui/progress_model.go"
|
file_path: "functions/tui/progress_model.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Indicador de carga animado con mensaje personalizable. Implementa tea.Model."
|
description: "Indicador de carga animado con mensaje personalizable. Implementa tea.Model."
|
||||||
tags: [tui, spinner, loading, component]
|
tags: [tui, spinner, loading, component]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/tui/spinner_model.go"
|
file_path: "functions/tui/spinner_model.go"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Spinner que se auto-detiene tras un timeout configurable. Embeds SpinnerModel."
|
description: "Spinner que se auto-detiene tras un timeout configurable. Embeds SpinnerModel."
|
||||||
tags: [tui, spinner, timeout, component]
|
tags: [tui, spinner, timeout, component]
|
||||||
uses_types: [spinner_model_go_tui]
|
uses_types: [spinner_model_go_tui]
|
||||||
file_path: "types/tui/spinner_with_timeout_model.go"
|
file_path: "functions/tui/spinner_with_timeout_model.go"
|
||||||
---
|
---
|
||||||
|
|||||||
+1
-1
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Coleccion completa de estilos lipgloss pre-configurados para tipografia, estados, componentes y layout."
|
description: "Coleccion completa de estilos lipgloss pre-configurados para tipografia, estados, componentes y layout."
|
||||||
tags: [tui, styles, lipgloss, theme]
|
tags: [tui, styles, lipgloss, theme]
|
||||||
uses_types: [theme_go_tui]
|
uses_types: [theme_go_tui]
|
||||||
file_path: "types/tui/styles.go"
|
file_path: "functions/tui/styles.go"
|
||||||
---
|
---
|
||||||
|
|||||||
+1
-1
@@ -9,5 +9,5 @@ definition: |
|
|||||||
description: "Paleta de colores para terminal con 9 colores semanticos. Base del sistema de estilos."
|
description: "Paleta de colores para terminal con 9 colores semanticos. Base del sistema de estilos."
|
||||||
tags: [tui, theme, styles, colors]
|
tags: [tui, theme, styles, colors]
|
||||||
uses_types: []
|
uses_types: []
|
||||||
file_path: "types/tui/theme.go"
|
file_path: "functions/tui/theme.go"
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user