entities

package
v1.1.0 Latest Latest
Warning

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

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

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