repository

package
v0.0.0-...-8e339c6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TableName = "checks"

Variables

View Source
var (
	SelectColumns = []string{
		"id",
		"host",
		"port",
		"status",
		"timeout",
	}
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	ListChecks(ctx context.Context) (model.Checks, error)
	UpdateStatus(ctx context.Context, check *model.Check) (bool, error)
}

func NewRepository

func NewRepository(db *sqlx.DB) Repository

NewRepository creates a new instance of Repository Service.

Jump to

Keyboard shortcuts

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