package
Version:
v0.0.0-...-7f34ccf
Opens a new window with list of versions in this module.
Published: Jan 23, 2025
License: MIT, MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Server ServerC `mapstructure:"server" json:"server"`
Debug DebugC `mapstructure:"debug" json:"debug"`
SQLite SQLiteC `mapstructure:"sqlite" json:"sqlite"`
P2P P2PS `mapstructure:"p2p" json:"p2p"`
UserList []UserInfo `mapstructure:"userlist" json:"userlist"`
}
type DebugC struct {
Enable bool `mapstructure:"enable" json:"enable"`
Port int `mapstructure:"port" json:"port"`
}
type P2PS struct {
Enable bool `mapstructure:"enable" json:"enable"`
ServiceDiscoveryID string `mapstructure:"service_discovery_id" json:"service_discovery_id"`
ServiceCommandTopic string `mapstructure:"service_command_topic" json:"service_command_topic"`
ServiceDiscoverMode string `mapstructure:"service_discover_mode" json:"service_discover_mode"`
NodeHostIP string `mapstructure:"node_host_ip" json:"node_host_ip"`
NodeHostPort int `mapstructure:"node_host_port" json:"node_host_port"`
}
type SQLiteC struct {
Filename string `mapstructure:"filename" json:"filename"`
}
type ServerC struct {
Addr string `mapstructure:"addr" json:"addr"`
}
type UserInfo struct {
User string `mapstructure:"user" json:"user"`
Password string `mapstructure:"password" json:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.