mirror of
https://github.com/codewhitesec/Lastenzug
synced 2026-06-08 13:35:16 +00:00
19 lines
276 B
Go
19 lines
276 B
Go
package cmd
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/c-f/talje/lib/gate"
|
|
)
|
|
|
|
func setProtocol(protocol string) {
|
|
switch protocol {
|
|
case "json":
|
|
gate.DefaultGate = gate.Json()
|
|
case "binary":
|
|
gate.DefaultGate = gate.Binary()
|
|
default:
|
|
log.Fatal("Unknown Protocol", protocol)
|
|
}
|
|
}
|