models

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SeverityCritical = iota
	SeverityWarning
	SeverityInfo
)
View Source
const (
	Reporter = iota
	Lead
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Incident

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

func NewIncident

func NewIncident(title string, reporter, lead *User, severity Severity) *Incident

func (*Incident) Close

func (i *Incident) Close()

func (*Incident) SetDescription

func (i *Incident) SetDescription(description string)

func (*Incident) SetLead

func (i *Incident) SetLead(lead *User)

func (*Incident) ToSlackMessage

func (i *Incident) ToSlackMessage() *slack.Msg

type Severity

type Severity int

func (Severity) String

func (s Severity) String() string

type User

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

func NewUser

func NewUser(role UserRole, displayName string) *User

func (*User) String

func (u *User) String() string

type UserRole

type UserRole int

func (UserRole) String

func (r UserRole) String() string

Jump to

Keyboard shortcuts

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