2015-09-12 20:11:54 +00:00
|
|
|
package core
|
|
|
|
|
|
|
|
// User is the user account that is used for connection to a Point
|
|
|
|
type User struct {
|
|
|
|
Id ID `json:"id"` // The ID of this User.
|
|
|
|
}
|
|
|
|
|
2015-09-19 13:07:10 +00:00
|
|
|
type ConnectionConfig interface {
|
2015-09-19 13:35:20 +00:00
|
|
|
Protocol() string
|
|
|
|
Content() []byte
|
2015-09-12 20:11:54 +00:00
|
|
|
}
|
|
|
|
|
2015-09-19 13:07:10 +00:00
|
|
|
type PointConfig interface {
|
2015-09-19 13:35:20 +00:00
|
|
|
Port() uint16
|
|
|
|
InboundConfig() ConnectionConfig
|
|
|
|
OutboundConfig() ConnectionConfig
|
2015-09-12 20:11:54 +00:00
|
|
|
}
|