config.go 340 B

1234567891011121314151617
  1. package core
  2. // User is the user account that is used for connection to a Point
  3. type User struct {
  4. Id ID `json:"id"` // The ID of this User.
  5. }
  6. type ConnectionConfig interface {
  7. Protocol() string
  8. Content() []byte
  9. }
  10. type PointConfig interface {
  11. Port() uint16
  12. InboundConfig() ConnectionConfig
  13. OutboundConfig() ConnectionConfig
  14. }