rename server, set version to timestamp
This commit is contained in:
parent
f787cc0ee0
commit
c6e15ef2d1
@ -3,9 +3,11 @@ package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/micro/go-micro/codec"
|
||||
@ -116,8 +118,8 @@ type Option func(*Options)
|
||||
|
||||
var (
|
||||
DefaultAddress = ":0"
|
||||
DefaultName = "server"
|
||||
DefaultVersion = "latest"
|
||||
DefaultName = "go.micro.server"
|
||||
DefaultVersion = fmt.Sprintf("%d", time.Now().Unix())
|
||||
DefaultId = uuid.New().String()
|
||||
DefaultServer Server = newRpcServer()
|
||||
DefaultRouter = newRpcRouter()
|
||||
|
Loading…
x
Reference in New Issue
Block a user