model

package
v0.0.0-...-ea8e01d Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelRepoName      = "repo_name"
	LabelRepoMethod    = "repo_method"
	ErrorIncrementStep = 1
)

Variables

View Source
var (
	DoNotReportErrors = []error{}
)

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	ErrCounter *prometheus.CounterVec
	Histogram  *prometheus.HistogramVec
}

type SQLTemplateRepo

type SQLTemplateRepo struct {
	DB *gorm.DB
}

func (SQLTemplateRepo) Create

func (s SQLTemplateRepo) Create(template *Template) (finalErr error)

type Template

type Template struct {
	ID   int64  `json:"id" gorm:"primary_key"`
	Name string `json:"name"`
}

type TemplateRepo

type TemplateRepo interface {
	Create(template *Template) error
}

Jump to

Keyboard shortcuts

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