Skip to content

Commit 66b0707

Browse files
committed
Final cleanup
1 parent 454b69f commit 66b0707

File tree

8 files changed

+5
-83
lines changed

8 files changed

+5
-83
lines changed

TODO.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22

33
List of things that I still need to do in order to make GoESL completed
44

5-
6-
[] Unit Tests
7-
[] Better documentation
5+
[x] Better documentation
86
[] Freeswitch WIKI Golang page (proposal)

client_test.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

constants.go

Lines changed: 0 additions & 9 deletions
This file was deleted.

semaphore.go

Lines changed: 0 additions & 29 deletions
This file was deleted.

server.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ func (s *OutboundServer) Stop() {
8282
// NewOutboundServer - Will instanciate new outbound server
8383
func NewOutboundServer(addr string) (*OutboundServer, error) {
8484
if len(addr) < 2 {
85-
86-
// Try to see if GOES_OUTBOUND_SERVER_ADDR is set. If it's set use that one ...
8785
addr = os.Getenv("GOES_OUTBOUND_SERVER_ADDR")
8886

8987
if addr == "" {
@@ -93,7 +91,7 @@ func NewOutboundServer(addr string) (*OutboundServer, error) {
9391

9492
server := OutboundServer{
9593
Addr: addr,
96-
Proto: "tcp", // Not seeing reason why this could become configurable at this moment
94+
Proto: "tcp",
9795
Conns: make(chan SocketConnection),
9896
}
9997

server_test.go

Lines changed: 0 additions & 28 deletions
This file was deleted.

utils.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
package goesl
88

9-
import ()
10-
119
// StringInSlice - Will check if string in list. This is equivalent to python if x in []
1210
func StringInSlice(str string, list []string) bool {
1311
for _, value := range list {

vars.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ package goesl
88

99
var (
1010

11-
// Size of buffer when we read from connection
11+
// Size of buffer when we read from connection.
12+
// 1024 << 6 == 65536
1213
ReadBufferSize = 1024 << 6
1314

14-
// Supported freeswitch events that we can/wish to parse out
15+
// Freeswitch events that we can handle (have logic for it)
1516
AvailableMessageTypes = []string{"auth/request", "text/disconnect-notice", "text/event-json", "text/event-plain", "api/response", "command/reply"}
1617
)

0 commit comments

Comments
 (0)