Help us shape the future of Go! Take the 2026 Go Developer Survey

archived

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0, MIT Imports: 3 Imported by: 1

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"`
	Url          string
	Name         string
}

func (Service) TableName

func (Service) TableName() string

type User

type User struct {
	common.NoPKModel
	ConnectionId uint64 `gorm:"primaryKey"`
	Id           string `gorm:"primaryKey"`
	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