cleaned up a few import statements

This commit is contained in:
tigerbot 2017-03-22 15:43:36 -06:00
parent f163b4ec7d
commit 87a1d9c0ae
9 changed files with 32 additions and 28 deletions

View File

@ -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"
)

View File

@ -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 {

View File

@ -1,6 +1,8 @@
package genericlistener
import "time"
import (
"time"
)
//StatusAPI -- Structure to support the server API
type StatusAPI struct {

View File

@ -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 (

View File

@ -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{

View File

@ -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

View File

@ -1,8 +1,10 @@
package genericlistener
import "fmt"
import "time"
import "context"
import (
"context"
"fmt"
"time"
)
const (
initialDomains = 0

View File

@ -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"
)

View File

@ -1,6 +1,8 @@
package genericlistener
import "errors"
import (
"errors"
)
func getHello(b []byte) (string, error) {
rest := b[5:]