repo

package
v0.0.0-...-3966bb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckRepository

type HealthCheckRepository struct {
	// contains filtered or unexported fields
}

func NewHealthCheckRepository

func NewHealthCheckRepository(dbHandler db.DB) (*HealthCheckRepository, error)

func (*HealthCheckRepository) Get

func (*HealthCheckRepository) GetByGuardianProverAddress

func (r *HealthCheckRepository) GetByGuardianProverAddress(
	ctx context.Context,
	req *http.Request,
	address string,
) (paginate.Page, error)

func (*HealthCheckRepository) GetMostRecentByGuardianProverAddress

func (r *HealthCheckRepository) GetMostRecentByGuardianProverAddress(
	ctx context.Context,
	req *http.Request,
	address string,
) (*guardianproverhealthcheck.HealthCheck, error)

func (*HealthCheckRepository) GetUptimeByGuardianProverAddress

func (r *HealthCheckRepository) GetUptimeByGuardianProverAddress(
	ctx context.Context,
	address string,
) (float64, int, error)

func (*HealthCheckRepository) Save

type SignedBlockRepository

type SignedBlockRepository struct {
	// contains filtered or unexported fields
}

func NewSignedBlockRepository

func NewSignedBlockRepository(dbHandler db.DB) (*SignedBlockRepository, error)

func (*SignedBlockRepository) GetMostRecentByGuardianProverAddress

func (r *SignedBlockRepository) GetMostRecentByGuardianProverAddress(ctx context.Context, address string) (
	*guardianproverhealthcheck.SignedBlock,
	error)

func (*SignedBlockRepository) Save

type StartupRepository

type StartupRepository struct {
	// contains filtered or unexported fields
}

func NewStartupRepository

func NewStartupRepository(dbHandler db.DB) (*StartupRepository, error)

func (*StartupRepository) GetByGuardianProverAddress

func (r *StartupRepository) GetByGuardianProverAddress(
	ctx context.Context,
	req *http.Request,
	address string,
) (paginate.Page, error)

func (*StartupRepository) GetMostRecentByGuardianProverAddress

func (r *StartupRepository) GetMostRecentByGuardianProverAddress(
	ctx context.Context,
	address string,
) (*guardianproverhealthcheck.Startup, error)

func (*StartupRepository) Save

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL