-
Notifications
You must be signed in to change notification settings - Fork 25
/
ifacer.go
44 lines (27 loc) · 772 Bytes
/
ifacer.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
package example1
import (
"context"
"github.com/gomodule/redigo/redis"
aa "github.com/jukylin/esim/redis"
"github.com/jukylin/esim/tool/ifacer/example/repo"
)
type TestStruct struct {
}
type Close interface {
Close(string, int) error
Err() error
}
type Test interface {
Iface1(func(string) string) (result bool, pool redis.Pool)
Iface2(ctx context.Context, found *bool) (result bool, err error)
Iface3() (f func(repo.Repo) string)
Iface4(map[string]*aa.Client) map[string]string
Iface5(redisClient *aa.Client) *aa.Client
Iface6(redisClient aa.Client) aa.Client
Iface7(chan<- bool, chan<- aa.Client) <-chan bool
Iface8(rp repo.Repo) repo.Repo
Close
Iface9(TestStruct, []TestStruct, [3]TestStruct)
Iface10(Close)
Iface11(...interface{})
}