4 Star 14 Fork 5

cloudtask / cloudtask-center

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
factory.go 604 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rick.B.Liu 提交于 2018-01-26 16:31 . add cloudtask-center code.
package notify
//INotifyEndPointFactory is exported
type INotifyEndPointFactory interface {
CreateAPIEndPoint(endpoint EndPoint) IEndPoint
CreateSMTPEndPoint(endpoint EndPoint) IEndPoint
}
//NotifyEndPointFactory is exported
type NotifyEndPointFactory struct {
INotifyEndPointFactory
}
//CreateAPIEndPoint is exported
func (factory *NotifyEndPointFactory) CreateAPIEndPoint(endpoint EndPoint) IEndPoint {
return NewAPIEndPoint(endpoint)
}
//CreateSMTPEndPoint is exported
func (factory *NotifyEndPointFactory) CreateSMTPEndPoint(endpoint EndPoint) IEndPoint {
return NewSMTPEndpoint(endpoint)
}
Go
1
https://gitee.com/cloudtask/cloudtask-center.git
git@gitee.com:cloudtask/cloudtask-center.git
cloudtask
cloudtask-center
cloudtask-center
v2.0.0

搜索帮助

53164aa7 5694891 3bd8fe86 5694891