mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
go fmt
This commit is contained in:
parent
1be8258721
commit
49b86c56e3
@ -8,8 +8,8 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/bwmarrin/discordgo"
|
||||
"github.com/micro/go-micro/agent/input"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/agent/input"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"errors"
|
||||
"sync"
|
||||
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/agent/input"
|
||||
"github.com/nlopes/slack"
|
||||
"github.com/micro/cli/v2"
|
||||
)
|
||||
|
||||
type slackInput struct {
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/micro/go-micro/agent/input"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/agent/input"
|
||||
tgbotapi "gopkg.in/telegram-bot-api.v4"
|
||||
)
|
||||
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/imdario/mergo"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/config/cmd"
|
||||
"github.com/micro/go-micro/config/source"
|
||||
"github.com/micro/cli/v2"
|
||||
)
|
||||
|
||||
type cliSource struct {
|
||||
|
@ -5,9 +5,9 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro/config/cmd"
|
||||
"github.com/micro/go-micro/config/source"
|
||||
"github.com/micro/cli/v2"
|
||||
)
|
||||
|
||||
func test(t *testing.T, withContext bool) {
|
||||
|
@ -13,11 +13,11 @@ import (
|
||||
)
|
||||
|
||||
// NewHandler returns an instance of the Debug Handler
|
||||
func NewHandler(srv server.Server) *Debug {
|
||||
func NewHandler() *Debug {
|
||||
return &Debug{
|
||||
log: log.DefaultLog,
|
||||
stats: stats.DefaultStats,
|
||||
trace: srv.Options().Tracer,
|
||||
trace: trace.DefaultTracer,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,11 +2,13 @@ package micro
|
||||
|
||||
import (
|
||||
"github.com/micro/go-micro/client"
|
||||
"github.com/micro/go-micro/debug/trace"
|
||||
"github.com/micro/go-micro/server"
|
||||
"github.com/micro/go-micro/store"
|
||||
|
||||
// set defaults
|
||||
gcli "github.com/micro/go-micro/client/grpc"
|
||||
memTrace "github.com/micro/go-micro/debug/trace/memory"
|
||||
gsrv "github.com/micro/go-micro/server/grpc"
|
||||
memStore "github.com/micro/go-micro/store/memory"
|
||||
)
|
||||
@ -18,4 +20,6 @@ func init() {
|
||||
server.DefaultServer = gsrv.NewServer()
|
||||
// default store
|
||||
store.DefaultStore = memStore.NewStore()
|
||||
// set default trace
|
||||
trace.DefaultTracer = memTrace.NewTracer()
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/micro/go-micro"
|
||||
"github.com/micro/go-micro/registry"
|
||||
maddr "github.com/micro/go-micro/util/addr"
|
||||
@ -21,7 +22,6 @@ import (
|
||||
"github.com/micro/go-micro/util/log"
|
||||
mnet "github.com/micro/go-micro/util/net"
|
||||
mls "github.com/micro/go-micro/util/tls"
|
||||
"github.com/micro/cli/v2"
|
||||
)
|
||||
|
||||
type service struct {
|
||||
|
Loading…
Reference in New Issue
Block a user