mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
move under net namespace
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"modules": [
|
||||
{
|
||||
"type": "tcp.server",
|
||||
"type": "net.tcp.server",
|
||||
"params": {
|
||||
"port": 8000
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ type TCPClient struct {
|
||||
|
||||
func init() {
|
||||
RegisterModule(ModuleRegistration{
|
||||
Type: "tcp.client",
|
||||
Type: "net.tcp.client",
|
||||
New: func(params map[string]any) (Module, error) {
|
||||
|
||||
host, ok := params["host"]
|
||||
|
||||
@@ -12,7 +12,7 @@ type TCPServer struct {
|
||||
|
||||
func init() {
|
||||
RegisterModule(ModuleRegistration{
|
||||
Type: "tcp.server",
|
||||
Type: "net.tcp.server",
|
||||
New: func(params map[string]any) (Module, error) {
|
||||
port, ok := params["port"]
|
||||
if !ok {
|
||||
|
||||
@@ -13,7 +13,7 @@ type UDPServer struct {
|
||||
|
||||
func init() {
|
||||
RegisterModule(ModuleRegistration{
|
||||
Type: "udp.server",
|
||||
Type: "net.udp.server",
|
||||
New: func(params map[string]any) (Module, error) {
|
||||
port, ok := params["port"]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user