mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Preparing for gob RPC testing
This commit is contained in:
committed by
Dan Christian Bogos
parent
41728e690a
commit
1ee6a98fac
@@ -22,6 +22,7 @@ import (
|
||||
"bytes"
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
"encoding/gob"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
@@ -41,6 +42,12 @@ import (
|
||||
"golang.org/x/net/websocket"
|
||||
)
|
||||
|
||||
func init() {
|
||||
gob.Register(map[string]interface{}{})
|
||||
gob.Register([]interface{}{})
|
||||
gob.Register(time.Duration(0))
|
||||
gob.Register(time.Time{})
|
||||
}
|
||||
func NewServer() (s *Server) {
|
||||
s = new(Server)
|
||||
s.httpMux = http.NewServeMux()
|
||||
|
||||
Reference in New Issue
Block a user