-
Notifications
You must be signed in to change notification settings - Fork 1
/
Function.go
55 lines (45 loc) · 964 Bytes
/
Function.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
package ipmsg
import (
"ipmsg/logger"
"net"
"os"
)
type UserManager struct {
}
func (u *UserManager) Init() {
logger.Error("no implement [IUserManager]")
}
func (u *UserManager) AddUser(pkg *Package) interface{ IUserInfo } {
user := &UserInfo{}
logger.Error("no implement [IUserManager]")
return user
}
func (u *UserManager) DelUser(pkg *Package) {
logger.Error("no implement [IUserManager]")
}
func (u *UserManager) GetAddrByName(name string) *net.UDPAddr {
logger.Error("no implement [IUserManager]")
return nil
}
type UserInfo struct {
Addr *net.UDPAddr
IdCode string
GroupName string
NickName string
UserName string
HostName string
}
func (u UserInfo) GetName() {
logger.Error("no implement [IUserInfo]")
}
func (u UserInfo) GetAddr() *net.UDPAddr {
logger.Error("no implement [IUserInfo]")
return nil
}
type FileInfo struct {
os.FileInfo
UserName string
Pkgnum interface{}
Num interface{}
Name string
}