-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface.go
56 lines (44 loc) · 1.06 KB
/
interface.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package plugin
import (
"github.com/livexy/plugin/cacher"
"github.com/livexy/plugin/dber"
"github.com/livexy/plugin/exceler"
"github.com/livexy/plugin/ider"
"github.com/livexy/plugin/jsoner"
"github.com/livexy/plugin/osser"
"github.com/livexy/plugin/pdfer"
"github.com/livexy/plugin/smser"
"github.com/livexy/plugin/streamer"
"github.com/livexy/plugin/worder"
"go.uber.org/zap"
)
type DBer interface {
New() dber.Dber
}
type IDer interface {
New(cfg ider.IDConfig) string
}
type Cacher interface {
New(cfg cacher.CacheConfig, logger *zap.Logger) (cacher.Cacher, error)
}
type OSSer interface {
New(cfg osser.OSSConfig) (osser.OSSer, error)
}
type Exceler interface {
New(cfg exceler.ExcelConfig) exceler.Exceler
}
type Worder interface {
New(cfg worder.WordConfig) worder.Worder
}
type Jsoner interface {
New(cfg jsoner.JsonConfig) jsoner.Jsoner
}
type Streamer interface {
New(cfg streamer.StreamConfig) streamer.Streamer
}
type SMSer interface {
New(cfg smser.SMSConfig) smser.SMSer
}
type PDFer interface {
New(cfg pdfer.PDFConfig) pdfer.PDFer
}