mock

package
v0.3.1-0...-684a909 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
}

func (*DB) Close

func (db *DB) Close() error

func (*DB) DB

func (db *DB) DB() (*sql.DB, error)

func (*DB) GormDB

func (db *DB) GormDB() *gorm.DB

type HealthCheckRepo

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

func NewHealthCheckRepository

func NewHealthCheckRepository() *HealthCheckRepo

func (*HealthCheckRepo) Get

func (h *HealthCheckRepo) Get(
	ctx context.Context,
	req *http.Request,
) (paginate.Page, error)

func (*HealthCheckRepo) GetByGuardianProverAddress

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

func (*HealthCheckRepo) GetMostRecentByGuardianProverAddress

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

func (*HealthCheckRepo) GetUptimeByGuardianProverAddress

func (h *HealthCheckRepo) GetUptimeByGuardianProverAddress(
	ctx context.Context,
	address string,
) (float64, int, error)

func (*HealthCheckRepo) Save

type SignedBlockRepo

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

func NewSignedBlockRepository

func NewSignedBlockRepository() *SignedBlockRepo

func (*SignedBlockRepo) GetMostRecentByGuardianProverAddress

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

func (*SignedBlockRepo) Save

type StartupRepo

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

func NewStartupRepository

func NewStartupRepository() *StartupRepo

func (*StartupRepo) GetByGuardianProverAddress

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

func (*StartupRepo) GetMostRecentByGuardianProverAddress

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

func (*StartupRepo) Save

Jump to

Keyboard shortcuts

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