mirror of
https://github.com/cf-sonr/motr.git
synced 2026-01-12 02:59:13 +00:00
* refactor: decouple core logic from global configuration * fix: apply consistent error handling across application * refactor: improve component rendering for better performance * feat: migrate views to use directory for components * feat: streamline UI imports and package structure * feat: update templ version to v0.3.865 * feat: enhance application observability with status check * refactor: decouple database setup from command line tools * refactor: replace card component with styled divs for improved customization * refactor: rename and move Helia console components to blocks * chore: reorganize controllers under handlers * feat: implement home page UI with registration form * <no value> * fix: correct file path in templ error messages * refactor: use web component for connection status indicator * feat: enhance connection status indicator with visual cue * chore: move Helia initialization script to helia package * refactor: rename 'appComponent' to 'consoleComponent' * chore: standardize import paths across vault package * feat: introduce common error definitions for API responses * refactor: centralize handle input logic into reusable component * style: adjust user handle input for better visual feedback * build: update templ generated files * feat: automate builds, archives, and releases * ci: consolidate publishing workflows for improved automation * ci: simplify deployment workflows and leverage Cloudflare * ci: allow manual deployment initiation * ci: add trigger for deploy workflow * docs: Update README with new development workflow and component details
27 lines
916 B
Go
27 lines
916 B
Go
package health
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/sonr-io/motr/sink/models"
|
|
)
|
|
|
|
type Queries interface {
|
|
GetHealthByEndpoint(ctx context.Context, endpointUrl string) (models.Health, error)
|
|
GetHealthByID(ctx context.Context, id string) (models.Health, error)
|
|
InsertHealth(ctx context.Context, arg models.InsertHealthParams) (models.Health, error)
|
|
ListHealthByChain(ctx context.Context, arg models.ListHealthByChainParams) ([]models.Health, error)
|
|
ListHealthByStatus(ctx context.Context, arg models.ListHealthByStatusParams) ([]models.Health, error)
|
|
ListHealthChecksNeedingUpdate(ctx context.Context, limit int64) ([]models.Health, error)
|
|
SoftDeleteHealth(ctx context.Context, id string) error
|
|
UpdateHealthCheck(ctx context.Context, arg models.UpdateHealthCheckParams) (models.Health, error)
|
|
}
|
|
|
|
func NewQueries(q models.Querier) Queries {
|
|
return &queries{Querier: q}
|
|
}
|
|
|
|
type queries struct {
|
|
models.Querier
|
|
}
|