Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
ChConn clickhouse.Conn
}
Service is responsible for handling ClickHouse database operations.
func (*Service) InsertIntoClickhouse ¶
InsertIntoClickhouse inserts the values into the clickhouse database
func (*Service) QueryOldestSignal ¶
func (s *Service) QueryOldestSignal(ctx context.Context, tokenID uint32, signalNames []string) (*vss.Signal, error)
QueryOldestSignal returns the oldest signal from the ClickHouse database with the given tokenID and signal names. if signalNames is empty, it returns the earliest signal for the given tokenID.
Click to show internal directories.
Click to hide internal directories.