1
0
Fork 0

네이밍 변경

This commit is contained in:
Sangbum Kim 2017-08-21 18:00:29 +09:00
parent b71f88cbf7
commit 4e2702265a
21 changed files with 43 additions and 43 deletions

2
.gitignore vendored
View File

@ -124,4 +124,4 @@ bind/
vendor/
mecab/
*.log
rooibos
api_skeleton

6
.vscode/launch.json vendored
View File

@ -2,18 +2,18 @@
"version": "0.2.0",
"configurations": [
{
"name": "rooibos dev",
"name": "api_skeleton dev",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${workspaceRoot}/rooibos",
"program": "${workspaceRoot}/api_skeleton",
"env": {},
"args": [
"-C",
"dev.yml"
"settings.yml"
],
"showLog": true
}

View File

@ -1,7 +1,7 @@
# This how we want to name the binary output
BINARY=rooibos
BINARY=api_skeleton
# These are the values we want to pass for VERSION and BUILD
# git tag 1.0.1
@ -10,7 +10,7 @@ VERSION=`git describe --always`
BUILD=`date +%FT%T%z`
# Setup the -ldflags option for go build here, interpolate the variable values
LDFLAGS=-ldflags "-w -s -X amuz.es/gogs/infra/rooibos/util.version=${VERSION} -X amuz.es/gogs/infra/rooibos/util.buildDate=${BUILD} "
LDFLAGS=-ldflags "-w -s -X amuz.es/gogs/infra/api_skeleton/util.version=${VERSION} -X amuz.es/gogs/infra/api_skeleton/util.buildDate=${BUILD} "
CGO_ENABLED=0
@ -41,7 +41,7 @@ generate:
strip:
upx rooibos
upx api_skeleton
# Installs our project: copies binaries
install:
go install ${LDFLAGS}

View File

@ -7,10 +7,10 @@ import (
"syscall"
"time"
"amuz.es/gogs/infra/rooibos/subsys/http"
"amuz.es/gogs/infra/rooibos/subsys/periodic"
"amuz.es/gogs/infra/api_skeleton/subsys/http"
"amuz.es/gogs/infra/api_skeleton/subsys/periodic"
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/util"
"gopkg.in/alecthomas/kingpin.v2"
"sync"
"context"

View File

@ -1,5 +1,5 @@
[Unit]
Description=Rooibos API Daemon
Description=Api_skeleton API Daemon
Documentation=https://amuz.es
After=syslog.target network-online.target
Wants=network-online.target
@ -8,8 +8,8 @@ Wants=network-online.target
Type=notify
Restart=always
RestartSec=15
ExecStart=/opt/eden/service/rooibos/cur-dev/rooibos -C dev.yml -L /opt/eden/service/rooibos/logs/dev
WorkingDirectory=/opt/eden/service/rooibos/cur-dev
ExecStart=/opt/eden/service/api_skeleton/cur-dev/api_skeleton -C dev.yml -L /opt/eden/service/api_skeleton/logs/dev
WorkingDirectory=/opt/eden/service/api_skeleton/cur-dev
#ExecReload=/bin/kill -s HUP $MAINPID
TimeoutStartSec=5

View File

@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/util"
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx"
errs "github.com/pkg/errors"

View File

@ -3,7 +3,7 @@ package db
import (
"bytes"
"amuz.es/gogs/infra/rooibos/enums"
"amuz.es/gogs/infra/api_skeleton/enums"
"database/sql"
"strconv"

View File

@ -6,13 +6,13 @@ import (
"time"
"net/http"
"amuz.es/gogs/infra/rooibos/subsys/http/middleware/logging"
"amuz.es/gogs/infra/rooibos/subsys/http/middleware/recovery"
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/subsys/http/middleware/logging"
"amuz.es/gogs/infra/api_skeleton/subsys/http/middleware/recovery"
"amuz.es/gogs/infra/api_skeleton/util"
"github.com/gin-gonic/gin"
errs "github.com/pkg/errors"
"amuz.es/gogs/infra/rooibos/subsys/http/route"
"amuz.es/gogs/infra/api_skeleton/subsys/http/route"
"github.com/mkevac/debugcharts"
"log"
"context"

View File

@ -9,8 +9,8 @@ import (
"strconv"
"time"
"amuz.es/gogs/infra/rooibos/subsys/http/iface"
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/subsys/http/iface"
"amuz.es/gogs/infra/api_skeleton/util"
"github.com/gin-gonic/gin"
)

View File

@ -9,8 +9,8 @@ import (
"runtime"
"strings"
"amuz.es/gogs/infra/rooibos/subsys/http/iface"
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/subsys/http/iface"
"amuz.es/gogs/infra/api_skeleton/util"
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
)

View File

@ -3,13 +3,13 @@ package route
import (
"net/http"
"amuz.es/gogs/infra/rooibos/subsys/http/iface"
"amuz.es/gogs/infra/rooibos/util"
common_iface "amuz.es/gogs/infra/rooibos/util/iface"
"amuz.es/gogs/infra/api_skeleton/subsys/http/iface"
"amuz.es/gogs/infra/api_skeleton/util"
common_iface "amuz.es/gogs/infra/api_skeleton/util/iface"
"github.com/gin-gonic/gin"
"amuz.es/gogs/infra/rooibos/subsys/db"
"amuz.es/gogs/infra/api_skeleton/subsys/db"
"time"
"amuz.es/gogs/infra/rooibos/enums"
"amuz.es/gogs/infra/api_skeleton/enums"
)
func Index(c *gin.Context) {

View File

@ -5,9 +5,9 @@ import (
"runtime"
"time"
"amuz.es/gogs/infra/rooibos/subsys/http/iface"
"amuz.es/gogs/infra/rooibos/subsys/http/middleware/logging"
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/subsys/http/iface"
"amuz.es/gogs/infra/api_skeleton/subsys/http/middleware/logging"
"amuz.es/gogs/infra/api_skeleton/util"
"github.com/gin-gonic/gin"
)

View File

@ -4,7 +4,7 @@ import (
"net/http"
"time"
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/util"
)
var logger = util.NewLogger("route")

View File

@ -9,7 +9,7 @@ import (
"sync/atomic"
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/util"
"context"
)

View File

@ -18,7 +18,7 @@ import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import _ "github.com/golang/protobuf/ptypes/timestamp"
import amuz_es_gogs_infra_rooibos_util_iface "amuz.es/gogs/infra/rooibos/util/iface"
import amuz_es_gogs_infra_api_skeleton_util_iface "amuz.es/gogs/infra/api_skeleton/util/iface"
import time "time"
import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
@ -38,8 +38,8 @@ var _ = time.Kitchen
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type TokenData struct {
ClientId amuz_es_gogs_infra_rooibos_util_iface.UUID `protobuf:"bytes,1,opt,name=ClientId,proto3,customtype=amuz.es/gogs/infra/rooibos/util/iface.UUID" json:"client_id"`
RefreshToken amuz_es_gogs_infra_rooibos_util_iface.UUID `protobuf:"bytes,2,opt,name=RefreshToken,proto3,customtype=amuz.es/gogs/infra/rooibos/util/iface.UUID" json:"refresh_token"`
ClientId amuz_es_gogs_infra_api_skeleton_util_iface.UUID `protobuf:"bytes,1,opt,name=ClientId,proto3,customtype=amuz.es/gogs/infra/api_skeleton/util/iface.UUID" json:"client_id"`
RefreshToken amuz_es_gogs_infra_api_skeleton_util_iface.UUID `protobuf:"bytes,2,opt,name=RefreshToken,proto3,customtype=amuz.es/gogs/infra/api_skeleton/util/iface.UUID" json:"refresh_token"`
MemberId uint64 `protobuf:"fixed64,3,opt,name=MemberId,proto3" json:"member_id"`
CreatedAt time.Time `protobuf:"bytes,4,opt,name=CreatedAt,stdtime" json:"created_at"`
}

View File

@ -5,12 +5,12 @@ import "google/protobuf/timestamp.proto";
message TokenData {
bytes ClientId =1 [
(gogoproto.customtype) = "amuz.es/gogs/infra/rooibos/util/iface.UUID",
(gogoproto.customtype) = "amuz.es/gogs/infra/api_skeleton/util/iface.UUID",
(gogoproto.jsontag) = "client_id",
(gogoproto.nullable) = false
];
bytes RefreshToken =2 [
(gogoproto.customtype) = "amuz.es/gogs/infra/rooibos/util/iface.UUID",
(gogoproto.customtype) = "amuz.es/gogs/infra/api_skeleton/util/iface.UUID",
(gogoproto.jsontag) = "refresh_token",
(gogoproto.nullable) = false
];

View File

@ -5,7 +5,7 @@ import (
"fmt"
"strconv"
"amuz.es/gogs/infra/rooibos/util/iface"
"amuz.es/gogs/infra/api_skeleton/util/iface"
"github.com/garyburd/redigo/redis"
)

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/util"
"github.com/garyburd/redigo/redis"
"github.com/youtube/vitess/go/pools"
"golang.org/x/net/context"

View File

@ -1,7 +1,7 @@
package redis
import (
"amuz.es/gogs/infra/rooibos/util/iface"
"amuz.es/gogs/infra/api_skeleton/util/iface"
"github.com/garyburd/redigo/redis"
)

View File

@ -56,7 +56,7 @@ func (c config) BuildDate() string {
return buildDate
}
const name = "Rooibos"
const name = "Api_skeleton"
var (
buildDate string

View File

@ -1,7 +1,7 @@
package iface
import (
"amuz.es/gogs/infra/rooibos/util"
"amuz.es/gogs/infra/api_skeleton/util"
"github.com/google/uuid"
)