Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CHService ¶ added in v0.0.13
type CHService interface { GetAggregatedSignals(ctx context.Context, aggArgs *model.AggregatedSignalArgs) ([]*model.AggSignal, error) GetLatestSignals(ctx context.Context, latestArgs *model.LatestSignalsArgs) ([]*vss.Signal, error) }
CHService is the interface for the ClickHouse service.
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository is the base repository for all repositories.
func NewRepository ¶
func NewRepository(logger *zerolog.Logger, chService CHService) *Repository
NewRepository creates a new base repository. clientCAs is optional and can be nil.
func (*Repository) GetSignal ¶ added in v0.0.8
func (r *Repository) GetSignal(ctx context.Context, aggArgs *model.AggregatedSignalArgs) ([]*model.SignalAggregations, error)
GetSignal returns the aggregated signals for the given tokenID, interval, from, to and filter.
func (*Repository) GetSignalLatest ¶ added in v0.0.8
func (r *Repository) GetSignalLatest(ctx context.Context, latestArgs *model.LatestSignalsArgs) (*model.SignalCollection, error)
GetSignalLatest returns the latest signals for the given tokenID and filter.
type ValidationError ¶ added in v0.0.8
type ValidationError string
ValidationError is an error type for validation errors.
func (ValidationError) Error ¶ added in v0.0.8
func (v ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.