vconfig.go 310 B

1234567891011121314151617181920
  1. package core
  2. type VUser struct {
  3. id VID
  4. }
  5. type VConfig struct {
  6. RunAs VUser
  7. Port uint16
  8. AllowedClients []VUser
  9. AllowedProtocol string
  10. }
  11. type VConfigMarshaller interface {
  12. Marshal(config VConfig) ([]byte, error)
  13. }
  14. type VConfigUnmarshaller interface {
  15. Unmarshal(data []byte) (VConfig, error)
  16. }