archived

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assignment

type Assignment struct {
	common.NoPKModel
	ConnectionId   uint64
	IncidentNumber int    `gorm:"primaryKey"`
	UserId         string `gorm:"primaryKey"`
	AssignedAt     time.Time
}

func (Assignment) TableName

func (Assignment) TableName() string

type Connection

type Connection struct {
	archived.Model
	Name  string `gorm:"type:varchar(100);uniqueIndex" json:"name" validate:"required"`
	Token string `mapstructure:"token" env:"PAGERDUTY_AUTH" validate:"required" encrypt:"yes"`
}

func (Connection) TableName

func (Connection) TableName() string

type Incident

type Incident struct {
	common.NoPKModel
	ConnectionId uint64 `gorm:"primaryKey"`
	Number       int    `gorm:"primaryKey"`
	Url          string
	ServiceId    string
	Summary      string
	Status       string
	Urgency      string
	CreatedDate  time.Time
	UpdatedDate  time.Time
}

func (Incident) TableName

func (Incident) TableName() string

type Service

type Service struct {
	common.NoPKModel
	ConnectionId uint64 `gorm:"primaryKey"`
	Id           string `gorm:"primaryKey;autoIncremental:false"`
	Url          string
	Name         string
}

func (Service) TableName

func (Service) TableName() string

type TransformationRules

type TransformationRules struct {
	common.Model
	Name         string `gorm:"type:varchar(255);index:idx_name_github,unique"`
	ConnectionId uint64
}

func (*TransformationRules) TableName

func (*TransformationRules) TableName() string

type User

type User struct {
	common.NoPKModel
	ConnectionId uint64 `gorm:"primaryKey"`
	Id           string `gorm:"primaryKey;autoIncremental:false"`
	Url          string
	Name         string
}

func (User) TableName

func (User) TableName() string

Jump to

Keyboard shortcuts

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