mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
change protocol to module
This commit is contained in:
@@ -13,9 +13,9 @@ type TCPClient struct {
|
||||
}
|
||||
|
||||
func init() {
|
||||
RegisterProtocol(ProtocolRegistration{
|
||||
RegisterModule(ModuleRegistration{
|
||||
Type: "tcp.client",
|
||||
New: func(params map[string]any) (Protocol, error) {
|
||||
New: func(params map[string]any) (Module, error) {
|
||||
|
||||
host, ok := params["host"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user