Documentation
¶
Overview ¶
Copyright 2019 The OpenPitrix Authors. All rights reserved. Use of this source code is governed by a Apache license that can be found in the LICENSE file.
Copyright 2019 The OpenPitrix Authors. All rights reserved. Use of this source code is governed by a Apache license that can be found in the LICENSE file.
Copyright 2019 The OpenPitrix Authors. All rights reserved. Use of this source code is governed by a Apache license that can be found in the LICENSE file.
Index ¶
- func CreateAddress(ctx context.Context, addr *models.Address) (string, error)
- func CreateAddressList(ctx context.Context, addrList *models.AddressList) (string, error)
- func CreateAddressListWithAddrIDs(ctx context.Context, addrList *models.AddressList, addrIds []string) (string, error)
- func DeleteAddressLists(ctx context.Context, addressListIds []string) error
- func DeleteAddresses(ctx context.Context, addressIds []string) error
- func DescribeAddressLists(ctx context.Context, req *pb.DescribeAddressListRequest) ([]*models.AddressList, uint64, error)
- func DescribeAddressesWithAddrListId(ctx context.Context, req *pb.DescribeAddressesRequest) ([]*models.AddressWithListId, uint64, error)
- func DescribeNotifications(ctx context.Context, req *pb.DescribeNotificationsRequest) ([]*models.Notification, uint64, error)
- func DescribeTasks(ctx context.Context, req *pb.DescribeTasksRequest) ([]*models.Task, uint64, error)
- func GetActiveAddressesByIds(ctx context.Context, addressIds []string) ([]*models.Address, error)
- func GetActiveAddressesListsByIds(ctx context.Context, addressListIds []string) ([]*models.AddressList, error)
- func GetAddressListsByIds(ctx context.Context, tx *gorm.DB, addressListIds []string) ([]*models.AddressList, error)
- func GetAddressesByIdsAndStatues(ctx context.Context, tx *gorm.DB, addressIds []string, statuses []string) ([]*models.Address, error)
- func GetAddressesByListIds(ctx context.Context, listIds []string) ([]*models.Address, error)
- func GetAddressesListByIds(ctx context.Context, tx *gorm.DB, addressListIds []string) ([]*models.AddressList, error)
- func GetDeletedAddressListsByIds(ctx context.Context, tx *gorm.DB, addressListIds []string) ([]*models.AddressList, error)
- func GetDeletedAddressesByIds(ctx context.Context, tx *gorm.DB, addressIds []string) ([]*models.Address, error)
- func GetEmailConfig4Modify(ctx context.Context, tx *gorm.DB) (*models.EmailConfig, error)
- func GetEmailConfigFromDB(ctx context.Context) (*models.EmailConfig, error)
- func GetEmailServiceConfig() *pb.EmailServiceConfig
- func GetFailedNfsByNfIds(ctx context.Context, nfIds []string) ([]*models.Notification, error)
- func GetNfsByNfIds(ctx context.Context, nfIds []string) ([]*models.Notification, error)
- func GetTaskIdsByNfIds(ctx context.Context, nfIds []string) ([]string, error)
- func GetTasksByStatus(ctx context.Context, notificationId string, status []string) []*models.Task
- func GetTasksByTaskIds(ctx context.Context, taskIds []string) ([]*models.Task, error)
- func ModifyAddress(ctx context.Context, addressId string, attributes map[string]interface{}) error
- func ModifyAddressList(ctx context.Context, addressListId string, attributes map[string]interface{}) error
- func ModifyAddressListWithAddrIDs(ctx context.Context, addressListId string, attributes map[string]interface{}, ...) error
- func ModifyEmailConfig(ctx context.Context, req *pb.ServiceConfig) error
- func RegisterNotification(ctx context.Context, notification *models.Notification) error
- func RegisterTask(ctx context.Context, task *models.Task) error
- func ResetEmailCfg(cfg *config.Config) error
- func SetServiceConfig(req *pb.ServiceConfig)
- func SplitNotificationIntoTasks(ctx context.Context, notification *models.Notification) ([]*models.Task, error)
- func UpdateNotificationsStatus(ctx context.Context, nfIds []string, status string) error
- func UpdateTasksStatus(ctx context.Context, taskIds []string, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAddressList ¶
func DeleteAddressLists ¶
func DescribeAddressLists ¶
func DescribeAddressLists(ctx context.Context, req *pb.DescribeAddressListRequest) ([]*models.AddressList, uint64, error)
func DescribeAddressesWithAddrListId ¶
func DescribeAddressesWithAddrListId(ctx context.Context, req *pb.DescribeAddressesRequest) ([]*models.AddressWithListId, uint64, error)
func DescribeNotifications ¶
func DescribeNotifications(ctx context.Context, req *pb.DescribeNotificationsRequest) ([]*models.Notification, uint64, error)
func DescribeTasks ¶
func GetActiveAddressesByIds ¶
func GetAddressListsByIds ¶
func GetAddressesByListIds ¶
func GetAddressesListByIds ¶
func GetEmailConfig4Modify ¶
func GetEmailConfigFromDB ¶
func GetEmailConfigFromDB(ctx context.Context) (*models.EmailConfig, error)
func GetEmailServiceConfig ¶
func GetEmailServiceConfig() *pb.EmailServiceConfig
func GetFailedNfsByNfIds ¶
func GetNfsByNfIds ¶
func GetTaskIdsByNfIds ¶
func GetTasksByStatus ¶
func GetTasksByTaskIds ¶
func ModifyAddress ¶
func ModifyAddressList ¶
func ModifyEmailConfig ¶
func ModifyEmailConfig(ctx context.Context, req *pb.ServiceConfig) error
func RegisterNotification ¶
func RegisterNotification(ctx context.Context, notification *models.Notification) error
func ResetEmailCfg ¶
func SetServiceConfig ¶
func SetServiceConfig(req *pb.ServiceConfig)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.