entities

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotificationConfIndexes = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: "id", Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "accountName", Value: repos.IndexAsc},
		},
		Unique: true,
	},
}
View Source
var SubscriptionIndexes = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: "id", Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "accountName", Value: repos.IndexAsc},
		},
		Unique: true,
	},
}

Functions

This section is empty.

Types

type Email

type Email struct {
	Enabled     bool   `json:"enabled"`
	MailAddress string `json:"mailAddress"`
}

type NotificationConf

type NotificationConf struct {
	repos.BaseEntity `json:",inline" graphql:"noinput"`
	CreatedBy        common.CreatedOrUpdatedBy `json:"createdBy" graphql:"noinput"`
	LastUpdatedBy    common.CreatedOrUpdatedBy `json:"lastUpdatedBy" graphql:"noinput"`

	Email    *Email    `json:"email"`
	Slack    *Slack    `json:"slack"`
	Telegram *Telegram `json:"telegram"`
	Webhook  *Webhook  `json:"webhook"`

	AccountName string `json:"accountName" graphql:"noinput"`
}

type Slack

type Slack struct {
	Enabled bool   `json:"enabled"`
	Url     string `json:"url"`
}

type Subscription

type Subscription struct {
	repos.BaseEntity `json:",inline" graphql:"noinput"`

	CreatedBy     common.CreatedOrUpdatedBy `json:"createdBy" graphql:"noinput"`
	LastUpdatedBy common.CreatedOrUpdatedBy `json:"lastUpdatedBy" graphql:"noinput"`

	AccountName string `json:"accountName" graphql:"noinput"`
	MailAddress string `json:"mailAddress"`

	// Configurations *SubscriptionConf `json:"configurations"`
	Enabled bool `json:"enabled"`
}

type Telegram

type Telegram struct {
	Enabled bool   `json:"enabled"`
	Token   string `json:"token"`
	ChatID  string `json:"chatId"`
}

type Webhook

type Webhook struct {
	Enabled bool   `json:"enabled"`
	URL     string `json:"url"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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