cleaned up a few import statements
This commit is contained in:
parent
f163b4ec7d
commit
87a1d9c0ae
3
main.go
3
main.go
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"flag"
|
||||
"fmt"
|
||||
|
@ -10,8 +11,6 @@ import (
|
|||
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"context"
|
||||
|
||||
"git.daplie.com/Daplie/go-rvpn-server/rvpn/genericlistener"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
package envelope
|
||||
|
||||
import "time"
|
||||
import "encoding/json"
|
||||
import "bytes"
|
||||
import "io"
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"io"
|
||||
"time"
|
||||
)
|
||||
|
||||
//Envelope -- Standard daplie response structure
|
||||
type Envelope struct {
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package genericlistener
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//StatusAPI -- Structure to support the server API
|
||||
type StatusAPI struct {
|
||||
|
|
|
@ -7,8 +7,9 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.daplie.com/Daplie/go-rvpn-server/rvpn/envelope"
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"git.daplie.com/Daplie/go-rvpn-server/rvpn/envelope"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -1,20 +1,16 @@
|
|||
package genericlistener
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/hex"
|
||||
"io"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.daplie.com/Daplie/go-rvpn-server/rvpn/packer"
|
||||
|
||||
"sync"
|
||||
|
||||
"io"
|
||||
|
||||
"context"
|
||||
|
||||
"encoding/hex"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
|
||||
"git.daplie.com/Daplie/go-rvpn-server/rvpn/packer"
|
||||
)
|
||||
|
||||
var upgrader = websocket.Upgrader{
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package genericlistener
|
||||
|
||||
import "github.com/gorilla/websocket"
|
||||
import (
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
//Registration -- A connection registration structure used to bring up a connection
|
||||
//connection table will then handle additing and sdtarting up the various readers
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
package genericlistener
|
||||
|
||||
import "fmt"
|
||||
import "time"
|
||||
import "context"
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
initialDomains = 0
|
||||
|
|
|
@ -1,24 +1,22 @@
|
|||
package genericlistener
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"encoding/hex"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
jwt "github.com/dgrijalva/jwt-go"
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/gorilla/websocket"
|
||||
|
||||
"net/http"
|
||||
|
||||
"bufio"
|
||||
|
||||
"git.daplie.com/Daplie/go-rvpn-server/rvpn/packer"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package genericlistener
|
||||
|
||||
import "errors"
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
func getHello(b []byte) (string, error) {
|
||||
rest := b[5:]
|
||||
|
|
Loading…
Reference in New Issue