rename server, set version to timestamp

This commit is contained in:
Asim Aslam 2019-08-21 15:43:46 +01:00
parent f787cc0ee0
commit c6e15ef2d1

View File

@ -3,9 +3,11 @@ package server
import ( import (
"context" "context"
"fmt"
"os" "os"
"os/signal" "os/signal"
"syscall" "syscall"
"time"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/micro/go-micro/codec" "github.com/micro/go-micro/codec"
@ -116,8 +118,8 @@ type Option func(*Options)
var ( var (
DefaultAddress = ":0" DefaultAddress = ":0"
DefaultName = "server" DefaultName = "go.micro.server"
DefaultVersion = "latest" DefaultVersion = fmt.Sprintf("%d", time.Now().Unix())
DefaultId = uuid.New().String() DefaultId = uuid.New().String()
DefaultServer Server = newRpcServer() DefaultServer Server = newRpcServer()
DefaultRouter = newRpcRouter() DefaultRouter = newRpcRouter()