Versions in this module Expand all Collapse all v1 v1.0.0 Jun 17, 2026 Changes in this version + const AddrColAddress + const AddrColCreateTime + const AddrColId + const AddrColNotifyType + const AddrColRemarks + const AddrColStatus + const AddrColStatusTime + const AddrColVerificationCode + const AddrColVerifyTime + const AddrLsColCreateTime + const AddrLsColExtra + const AddrLsColId + const AddrLsColName + const AddrLsColStatus + const AddrLsColStatusTime + const AddressIdPrefix + const AddressListBindingIdPrefix + const AddressListIdPrefix + const BindColAddrId + const BindColAddrListId + const BindColCreateTime + const BindColId + const ContentTypeAlerting + const ContentTypeBusiness + const ContentTypeEvent + const ContentTypeFee + const ContentTypeInvite + const ContentTypeOther + const ContentTypeVerify + const EmailCfgColCreateTime + const EmailCfgColDisplaySender + const EmailCfgColEmail + const EmailCfgColEmailHost + const EmailCfgColFromEmailAddr + const EmailCfgColPassword + const EmailCfgColPort + const EmailCfgColProtocol + const EmailCfgColSSLEnable + const EmailCfgColStatusTime + const NFAddrLsColId + const NFAddrLsColLsId + const NFAddrLsColNfId + const NFAddressListIdPrefix + const NfColAddressInfo + const NfColContent + const NfColContentType + const NfColCreateTime + const NfColExpiredDays + const NfColId + const NfColOwner + const NfColShortContent + const NfColStatus + const NfColStatusTime + const NfColTitle + const NotificationIdPrefix + const ProtocolTypeIMAP + const ProtocolTypePOP3 + const ProtocolTypeSMTP + const ServiceCfgDisplayEmail + const ServiceCfgEmail + const ServiceCfgEmailHost + const ServiceCfgPassword + const ServiceCfgPort + const ServiceCfgProtocol + const ServiceType + const TableAddress + const TableAddressList + const TableAddressListBinding + const TableEmailConfig + const TableNFAddressList + const TableNotification + const TableTask + const TaskColCreateTime + const TaskColErrorCode + const TaskColNfId + const TaskColStatus + const TaskColTaskId + const TaskIdPrefix + const TestEmailRecipient + const WsMessageIdPrefix + var ContentTypes = []string + var IndexedColumns = map[string][]string + var ProtocolTypes = []string + var SearchColumns = map[string][]string + var SearchWordColumnTable = []string + func AddressListSet2PbSet(inAddrLists []*AddressList) []*pb.AddressList + func AddressListToPb(addressList *AddressList) *pb.AddressList + func AddressWithListIdSet2PbSet(inAddrs []*AddressWithListId) []*pb.Address + func AddressWithListIdToPb(addressWithListId *AddressWithListId) *pb.Address + func CheckExtra(ctx context.Context, extraStr string) error + func DecodeExtra(data string) (*map[string]string, error) + func DecodeNotificationExtra(data string) (*map[string]string, error) + func DecodeNotificationExtra4ws(data string) (ws_service string, ws_message_type string) + func EmailConfigToPb(emailConfig *EmailConfig) *pb.EmailServiceConfig + func MessageDetailToPb(userMsgDetail *MessageDetail) *pb.MessageDetail + func NewAddressId() string + func NewAddressListBindingId() string + func NewAddressListId() string + func NewNFAddressListId() string + func NewNotificationId() string + func NewTaskId() string + func NewWsMessageId() string + func NotificationSet2PbSet(inNfs []*Notification) []*pb.Notification + func NotificationToPb(notification *Notification) *pb.Notification + func TaskSet2PbSet(inTasks []*Task) []*pb.Task + func TaskToPb(task *Task) *pb.Task + func UseMsgStringToPb(dataStr string) (*pb.UserMessage, error) + func UserMessageToPb(userMsg *UserMessage) *pb.UserMessage + type Address struct + Address string + AddressId string + CreateTime time.Time + NotifyType string + Remarks string + Status string + StatusTime time.Time + VerificationCode string + VerifyTime time.Time + func NewAddress(req *pb.CreateAddressRequest) *Address + type AddressInfo map[string][]string + func DecodeAddressInfo(data string) (*AddressInfo, error) + type AddressList struct + AddressListId string + AddressListName string + CreateTime time.Time + Extra string + Status string + StatusTime time.Time + func NewAddressList(req *pb.CreateAddressListRequest) *AddressList + type AddressListBinding struct + AddressId string + AddressListId string + BindingId string + CreateTime time.Time + type AddressListIds []string + func DecodeAddressListIds(data string) (*AddressListIds, error) + type AddressWithListId struct + Address string + AddressId string + AddressListId string + CreateTime time.Time + NotifyType string + Remarks string + Status string + StatusTime time.Time + VerificationCode string + VerifyTime time.Time + type Content map[string]string + func DecodeContent(data string) (*Content, error) + type EmailConfig struct + CreateTime time.Time + DisplaySender string + Email string + EmailHost string + FromEmailAddr string + Password string + Port uint32 + Protocol string + SSLEnable bool + StatusTime time.Time + func NewEmailConfig(req *pb.ServiceConfig) *EmailConfig + type MessageDetail struct + MessageContent string + MessageId string + MessageType string + Service string + UserId string + func PbToMessageDetail(pbMsgDetail *pb.MessageDetail) *MessageDetail + type NFAddressList struct + AddressListId string + NFAddressListId string + NotificationId string + type Notification struct + AddressInfo string + AvailableEndTime string + AvailableStartTime string + Content string + ContentType string + CreateTime time.Time + ExpiredDays uint32 + Extra string + NotificationId string + Owner string + ShortContent string + Status string + StatusTime time.Time + Title string + func NewNotification(req *pb.CreateNotificationRequest) *Notification + type NotificationExtra map[string]string + type Receiver struct + Conn *websocket.Conn + MessageType string + Service string + UserId string + type Task struct + CreateTime time.Time + Directive string + ErrorCode int64 + NotificationId string + NotifyType string + Status string + StatusTime time.Time + TaskId string + func NewTask(notificationId, directive string, notifyType string) *Task + type TaskDirective struct + Address string + AvailableEndTime string + AvailableStartTime string + Content string + ContentType string + ExpiredDays uint32 + NotificationId string + NotifyType string + ShortContent string + Title string + func DecodeTaskDirective(data string) (*TaskDirective, error) + type TaskWithNfInfo struct + Content string + EmailAddr string + JobID string + NotificationId string + ShortContent string + TaskID string + Title string + type UserMessage struct + MessageDetail MessageDetail + MessageType string + Service string + UserId string + func PbToUserMessage(pbUserMsg *pb.UserMessage) *UserMessage