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": [
|
"modules": [
|
||||||
{
|
{
|
||||||
"type": "tcp.server",
|
"type": "net.tcp.server",
|
||||||
"params": {
|
"params": {
|
||||||
"port": 8000
|
"port": 8000
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ type TCPClient struct {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterModule(ModuleRegistration{
|
RegisterModule(ModuleRegistration{
|
||||||
Type: "tcp.client",
|
Type: "net.tcp.client",
|
||||||
New: func(params map[string]any) (Module, error) {
|
New: func(params map[string]any) (Module, error) {
|
||||||
|
|
||||||
host, ok := params["host"]
|
host, ok := params["host"]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ type TCPServer struct {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterModule(ModuleRegistration{
|
RegisterModule(ModuleRegistration{
|
||||||
Type: "tcp.server",
|
Type: "net.tcp.server",
|
||||||
New: func(params map[string]any) (Module, error) {
|
New: func(params map[string]any) (Module, error) {
|
||||||
port, ok := params["port"]
|
port, ok := params["port"]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ type UDPServer struct {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterModule(ModuleRegistration{
|
RegisterModule(ModuleRegistration{
|
||||||
Type: "udp.server",
|
Type: "net.udp.server",
|
||||||
New: func(params map[string]any) (Module, error) {
|
New: func(params map[string]any) (Module, error) {
|
||||||
port, ok := params["port"]
|
port, ok := params["port"]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user