mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
19 lines
364 B
Go
19 lines
364 B
Go
package net
|
|
|
|
type ConfigGetter interface {
|
|
GetNet() Config
|
|
}
|
|
|
|
type Config struct {
|
|
Server ServerConfig `yaml:"server"`
|
|
Stream StreamConfig `yaml:"stream"`
|
|
}
|
|
|
|
type ServerConfig struct {
|
|
ListenAddrs []string `yaml:"listenAddrs"`
|
|
}
|
|
|
|
type StreamConfig struct {
|
|
TimeoutMilliseconds int `yaml:"timeoutMilliseconds"`
|
|
MaxMsgSizeMb int `yaml:"maxMsgSizeMb"`
|
|
}
|