Documentation
¶
Index ¶
- type DB
- type HealthCheckRepo
- func (h *HealthCheckRepo) Get(ctx context.Context, req *http.Request) (paginate.Page, error)
- func (h *HealthCheckRepo) GetByGuardianProverAddress(ctx context.Context, req *http.Request, address string) (paginate.Page, error)
- func (r *HealthCheckRepo) GetMostRecentByGuardianProverAddress(ctx context.Context, req *http.Request, address string) (*guardianproverhealthcheck.HealthCheck, error)
- func (h *HealthCheckRepo) GetUptimeByGuardianProverAddress(ctx context.Context, address string) (float64, int, error)
- func (h *HealthCheckRepo) Save(ctx context.Context, opts *guardianproverhealthcheck.SaveHealthCheckOpts) error
- type SignedBlockRepo
- func (r *SignedBlockRepo) GetByStartingBlockID(ctx context.Context, ...) ([]*guardianproverhealthcheck.SignedBlock, error)
- func (r *SignedBlockRepo) GetMostRecentByGuardianProverAddress(ctx context.Context, address string) (*guardianproverhealthcheck.SignedBlock, error)
- func (r *SignedBlockRepo) Save(ctx context.Context, opts *guardianproverhealthcheck.SaveSignedBlockOpts) error
- type StartupRepo
- func (h *StartupRepo) GetByGuardianProverAddress(ctx context.Context, req *http.Request, address string) (paginate.Page, error)
- func (r *StartupRepo) GetMostRecentByGuardianProverAddress(ctx context.Context, address string) (*guardianproverhealthcheck.Startup, error)
- func (h *StartupRepo) Save(ctx context.Context, opts *guardianproverhealthcheck.SaveStartupOpts) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckRepo ¶
type HealthCheckRepo struct {
// contains filtered or unexported fields
}
func NewHealthCheckRepository ¶
func NewHealthCheckRepository() *HealthCheckRepo
func (*HealthCheckRepo) GetByGuardianProverAddress ¶
func (*HealthCheckRepo) GetMostRecentByGuardianProverAddress ¶
func (r *HealthCheckRepo) GetMostRecentByGuardianProverAddress( ctx context.Context, req *http.Request, address string, ) (*guardianproverhealthcheck.HealthCheck, error)
func (*HealthCheckRepo) GetUptimeByGuardianProverAddress ¶
func (*HealthCheckRepo) Save ¶
func (h *HealthCheckRepo) Save(ctx context.Context, opts *guardianproverhealthcheck.SaveHealthCheckOpts) error
type SignedBlockRepo ¶
type SignedBlockRepo struct {
// contains filtered or unexported fields
}
func NewSignedBlockRepository ¶
func NewSignedBlockRepository() *SignedBlockRepo
func (*SignedBlockRepo) GetByStartingBlockID ¶
func (r *SignedBlockRepo) GetByStartingBlockID( ctx context.Context, opts guardianproverhealthcheck.GetSignedBlocksByStartingBlockIDOpts, ) ([]*guardianproverhealthcheck.SignedBlock, error)
func (*SignedBlockRepo) GetMostRecentByGuardianProverAddress ¶
func (r *SignedBlockRepo) GetMostRecentByGuardianProverAddress( ctx context.Context, address string, ) (*guardianproverhealthcheck.SignedBlock, error)
func (*SignedBlockRepo) Save ¶
func (r *SignedBlockRepo) Save(ctx context.Context, opts *guardianproverhealthcheck.SaveSignedBlockOpts) error
type StartupRepo ¶
type StartupRepo struct {
// contains filtered or unexported fields
}
func NewStartupRepository ¶
func NewStartupRepository() *StartupRepo
func (*StartupRepo) GetByGuardianProverAddress ¶
func (*StartupRepo) GetMostRecentByGuardianProverAddress ¶
func (r *StartupRepo) GetMostRecentByGuardianProverAddress( ctx context.Context, address string, ) (*guardianproverhealthcheck.Startup, error)
func (*StartupRepo) Save ¶
func (h *StartupRepo) Save(ctx context.Context, opts *guardianproverhealthcheck.SaveStartupOpts) error
Click to show internal directories.
Click to hide internal directories.