Documentation ¶
Index ¶
- func InitDbVar() db
- func New() error
- func NewChatOpsExtensionConn() chatOpsExtensionDBConn
- func NewComponentDBConn() componentDBConn
- func NewIncidentDBConn() incidentDBConn
- func NewPagerdutyExtensionConn() pagedutyExtensionDBConn
- func NewServiceDBConn() serviceDBConn
- func NewSquadcastExtensionConn() squadcastExtensionDBConn
- func NewSubscriptionConn() subscriptionDBConn
- func NewWebhookExtensionConn() webhookExtensionDBConn
- type ChatopsExtensionStore
- type ComponentStore
- type IncidentStore
- type Logger
- type PagerdutyExtensionStore
- type ServiceStore
- type SquadcastExtensionStore
- type SubscriptionStore
- type WebhookExtensionStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChatOpsExtensionConn ¶
func NewChatOpsExtensionConn() chatOpsExtensionDBConn
func NewComponentDBConn ¶
func NewComponentDBConn() componentDBConn
func NewIncidentDBConn ¶
func NewIncidentDBConn() incidentDBConn
func NewPagerdutyExtensionConn ¶
func NewPagerdutyExtensionConn() pagedutyExtensionDBConn
func NewServiceDBConn ¶
func NewServiceDBConn() serviceDBConn
func NewSquadcastExtensionConn ¶
func NewSquadcastExtensionConn() squadcastExtensionDBConn
func NewSubscriptionConn ¶
func NewSubscriptionConn() subscriptionDBConn
func NewWebhookExtensionConn ¶
func NewWebhookExtensionConn() webhookExtensionDBConn
Types ¶
type ChatopsExtensionStore ¶
type ComponentStore ¶
type IncidentStore ¶
type IncidentStore interface { Create([]schema.Incident) ([]schema.Incident, error) GetByProviderIDs(providerIDs []string) ([]schema.Incident, error) CreateIncidentUpdates(incidentUpdates []schema.IncidentUpdate) ([]schema.IncidentUpdate, error) CreateIncidentComponents(incidentComponents []schema.IncidentComponent) error GetIncidentUpdatesByProviderIDs(providerIDs []string) ([]schema.IncidentUpdate, error) }
type PagerdutyExtensionStore ¶
type ServiceStore ¶
type SquadcastExtensionStore ¶
type SubscriptionStore ¶
type SubscriptionStore interface { GetAllServicesForSubscriptions(serviceName string) ([]schema.ServicesForSubsciption, error) Create(serviceID uint, componentIDs []uint, isAllComponents bool) error GetByID(subscriptionID uuid.UUID) (schema.SubscriptionWithService, error) GetWithComponents(subscriptionID uuid.UUID) ([]schema.SubscriptionWithComponent, error) Update(subscriptionID uuid.UUID, componentIDs []uint, isAllComponents bool) error GetForIncidentUpdates(incidentUpdateID uint) ([]schema.SubscriptionForIncidentUpdate, error) DashboardSubscription(serviceName string, offset, limit uint) ([]schema.DashboardSubscription, error) GetIncidentsForSubscription(subscriptionUUID uuid.UUID, offset, limit uint) ([]schema.SubscriptionIncident, error) Delete(subscriptionID uuid.UUID) error }
type WebhookExtensionStore ¶
Click to show internal directories.
Click to hide internal directories.