status

package
v0.0.1-alpha-5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Name      string
	EntityID  string
	Code      string
	Timestamp int64
}

This table will contain information for latest status of the application

type StatusRepository

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

func NewStatusRepository

func NewStatusRepository(dbClient *gorm.DB, statusType string) *StatusRepository

func (StatusRepository) CreateTimestamp

func (s StatusRepository) CreateTimestamp(entityID string, timestamp int64) error

func (StatusRepository) GetLastFetchedTimestamp

func (s StatusRepository) GetLastFetchedTimestamp(entityID string) (int64, error)

func (StatusRepository) UpdateLastFetchedTimestamp

func (s StatusRepository) UpdateLastFetchedTimestamp(entityID string, timestamp int64) error

Jump to

Keyboard shortcuts

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