Skip to content

Commit

Permalink
goimports on project
Browse files Browse the repository at this point in the history
  • Loading branch information
evenh committed Jan 9, 2019
1 parent a2e36ce commit 8a410e5
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 18 deletions.
9 changes: 5 additions & 4 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ package client
import (
"context"
"errors"
"github.com/evenh/intercert/api"
"github.com/evenh/intercert/config"
"github.com/xenolf/lego/log"
"google.golang.org/grpc"
"os"
"os/signal"
"runtime"
"syscall"
"time"

"github.com/evenh/intercert/api"
"github.com/evenh/intercert/config"
"github.com/xenolf/lego/log"
"google.golang.org/grpc"
)

func StartClient(config *config.ClientConfig, userAgent string) {
Expand Down
1 change: 1 addition & 0 deletions client/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package client
import (
"context"
"fmt"

"github.com/evenh/intercert/api"
"github.com/xenolf/lego/log"
)
Expand Down
3 changes: 2 additions & 1 deletion client/scheduler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package client

import (
"github.com/xenolf/lego/log"
"time"

"github.com/xenolf/lego/log"
)

// From https://github.com/KyleBanks/go-kit/blob/master/job/job.go
Expand Down
7 changes: 4 additions & 3 deletions client/storage.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package client

import (
"github.com/evenh/intercert/api"
"github.com/pkg/errors"
"github.com/xenolf/lego/log"
"os"
"path"
"sort"
"strconv"
"strings"

"github.com/evenh/intercert/api"
"github.com/pkg/errors"
"github.com/xenolf/lego/log"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion client/tasks.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package client

import (
"github.com/xenolf/lego/log"
"time"

"github.com/xenolf/lego/log"
)

// Find all expired certificates and ensure they are queued up for renewal
Expand Down
3 changes: 2 additions & 1 deletion cmd/client.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package cmd

import (
"time"

"github.com/evenh/intercert/client"
"github.com/evenh/intercert/config"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"time"
)

func init() {
Expand Down
3 changes: 2 additions & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cmd

import (
"os"

"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/xenolf/lego/log"
"os"
)

func PrintErrorAndExit(err error) {
Expand Down
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package cmd

import (
"fmt"
"runtime"

"github.com/mitchellh/go-homedir"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"runtime"
)

var (
Expand Down
1 change: 1 addition & 0 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"errors"

"github.com/evenh/intercert/config"
"github.com/evenh/intercert/server"
"github.com/spf13/cobra"
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"github.com/evenh/intercert/cmd"
"log"
"os"

"github.com/evenh/intercert/cmd"
)

var (
Expand Down
4 changes: 3 additions & 1 deletion server/issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import (
"crypto"
"crypto/ecdsa"
"crypto/rsa"

"crypto/tls"
"crypto/x509"
"encoding/pem"
"strings"

"github.com/evenh/intercert/api"
"github.com/evenh/intercert/config"
"github.com/mholt/certmagic"
Expand All @@ -17,7 +20,6 @@ import (
"github.com/xenolf/lego/providers/dns"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/peer"
"strings"
)

type IssuerService struct {
Expand Down
5 changes: 3 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package server

import (
"net"
"strconv"

"github.com/evenh/intercert/api"
"github.com/evenh/intercert/config"
"github.com/xenolf/lego/log"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
"net"
"strconv"
)

func StartServer(config *config.ServerConfig) {
Expand Down
3 changes: 2 additions & 1 deletion server/whitelist.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package server

import (
"strings"

"github.com/bobesa/go-domain-util/domainutil"
"github.com/pkg/errors"
"github.com/xenolf/lego/log"
"strings"
)

// A whitelist holds valid domains that certificates can be
Expand Down
3 changes: 2 additions & 1 deletion server/whitelist_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package server

import (
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"
)

func TestSimpleCase(t *testing.T) {
Expand Down

0 comments on commit 8a410e5

Please sign in to comment.