libnmdc/UserInfo.go

29 lines
649 B
Go
Raw Normal View History

2016-02-12 04:03:42 +00:00
package libnmdc
// This structure represents a user connected to a hub.
type UserInfo struct {
Nick string
Description string
ClientTag string
ClientVersion string
2016-02-12 04:03:42 +00:00
Email string
ShareSize uint64
ConnectionMode ConnectionMode
Flag UserFlag
Slots uint64
Speed string
HubsUnregistered uint64
HubsRegistered uint64
HubsOperator uint64
IsOperator bool
2017-02-09 06:28:37 +00:00
IPAddress string
2016-02-12 04:03:42 +00:00
}
func NewUserInfo(username string) *UserInfo {
return &UserInfo{
Nick: username,
ConnectionMode: CONNECTIONMODE_PASSIVE,
HubsUnregistered: 1,
}
}