simplificed monotonic time functions by using x/sys/unix

This commit is contained in:
2024-12-10 13:15:05 +09:00
parent 2d15f0d2a4
commit 6fdae92300
9 changed files with 48 additions and 63 deletions

View File

@ -65,6 +65,8 @@ type AppConfig struct {
type ServerConfig struct {
APP AppConfig `yaml:"app"`
// TODO: add some limits
// max number of clients, max nubmer of peers
CTL struct {
Service CTLServiceConfig `yaml:"service"`
TLS ServerTLSConfig `yaml:"tls"`
@ -79,6 +81,8 @@ type ServerConfig struct {
type ClientConfig struct {
APP AppConfig `yaml:"app"`
// TODO: add some limits
// max nubmer of peers
CTL struct {
Service CTLServiceConfig `yaml:"service"`
TLS ServerTLSConfig `yaml:"tls"`