repository

package
v0.0.0-...-238b541 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthCheckRepository

func NewHealthCheckRepository(Conn *gorm.DB) HealthCheckInterface.IHealthCheckRepository

Define an exported function. Call this in main.go and bind your connection to the struct

Types

type HealthCheckRepository

type HealthCheckRepository struct {
	Conn *gorm.DB
}

Define your repository connection In this case, we use a SQL connection and use gorm as an ORM

func (*HealthCheckRepository) GetDBTimestamp

func (m *HealthCheckRepository) GetDBTimestamp() models.HealthCheck

Jump to

Keyboard shortcuts

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