notify

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 18 Imported by: 1 module, 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

This section is empty.

Functions

This section is empty.

Types

type NotifyGroup

type NotifyGroup struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *NotifyGroup

func (*NotifyGroup) BatchGet

func (o *NotifyGroup) BatchGet(ids []int64) ([]*apistructs.NotifyGroup, error)

func (*NotifyGroup) CheckNotifyChannels

func (o *NotifyGroup) CheckNotifyChannels(channelStr string) error

func (*NotifyGroup) CheckNotifyGroupTarget

func (o *NotifyGroup) CheckNotifyGroupTarget(targets []apistructs.NotifyTarget) error

func (*NotifyGroup) Create

func (o *NotifyGroup) Create(locale *i18n.LocaleResource, createReq *apistructs.CreateNotifyGroupRequest) (int64, error)

func (*NotifyGroup) CreateNotify

func (o *NotifyGroup) CreateNotify(locale *i18n.LocaleResource, createReq *apistructs.CreateNotifyRequest) (int64, error)

func (*NotifyGroup) CreateNotifyHistory

func (o *NotifyGroup) CreateNotifyHistory(request *apistructs.CreateNotifyHistoryRequest) (int64, error)

func (*NotifyGroup) Delete

func (o *NotifyGroup) Delete(id int64, orgID int64) error

func (*NotifyGroup) DeleteNotify

func (o *NotifyGroup) DeleteNotify(notifyID int64, deleteGroup bool, orgID int64) error

func (*NotifyGroup) DeleteNotifySource

func (o *NotifyGroup) DeleteNotifySource(request *apistructs.DeleteNotifySourceRequest) error

func (*NotifyGroup) FuzzyQueryNotifiesBySource

func (*NotifyGroup) Get

func (o *NotifyGroup) Get(id int64, orgID int64) (*apistructs.NotifyGroup, error)

func (*NotifyGroup) GetDetail

func (o *NotifyGroup) GetDetail(id int64, orgID int64) (*apistructs.NotifyGroupDetail, error)

func (*NotifyGroup) GetNotify

func (o *NotifyGroup) GetNotify(notifyID int64, orgID int64) (*apistructs.NotifyDetail, error)

func (*NotifyGroup) GetNotifyItemsByNotifyID

func (o *NotifyGroup) GetNotifyItemsByNotifyID(notifyID int64) ([]*apistructs.NotifyItem, error)

func (*NotifyGroup) LocaleItem

func (o *NotifyGroup) LocaleItem(locale *i18n.LocaleResource, item *apistructs.NotifyItem)

func (*NotifyGroup) Query

func (*NotifyGroup) QueryNotifies

func (*NotifyGroup) QueryNotifiesBySource

func (o *NotifyGroup) QueryNotifiesBySource(locale *i18n.LocaleResource, sourceType, sourceID, itemName string, orgId int64, clusterName string, label string) ([]*apistructs.NotifyDetail, error)

func (*NotifyGroup) QueryNotifyHistories

func (*NotifyGroup) QueryNotifyItems

func (*NotifyGroup) Update

func (o *NotifyGroup) Update(updateReq *apistructs.UpdateNotifyGroupRequest) error

func (*NotifyGroup) UpdateNotify

func (o *NotifyGroup) UpdateNotify(req *apistructs.UpdateNotifyRequest) error

func (*NotifyGroup) UpdateNotifyEnable

func (o *NotifyGroup) UpdateNotifyEnable(id int64, enabled bool, orgID int64) error

func (*NotifyGroup) UpdateNotifyItem

func (o *NotifyGroup) UpdateNotifyItem(request *apistructs.UpdateNotifyItemRequest) error

type Option

type Option func(*NotifyGroup)

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

type USERID

type USERID string

func (*USERID) UnmarshalJSON

func (u *USERID) UnmarshalJSON(b []byte) error

UnmarshalJSON maybe int or string, unmarshal them to string(USERID)

type User

type User struct {
	ID        USERID `json:"user_id"`
	Name      string `json:"username"`
	AvatarURL string `json:"avatar_url"`
	Phone     string `json:"phone_number"`
	Email     string `json:"email"`
	Nick      string `json:"nickname"`
}

User 用户中心用户数据结构

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

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