Skip to content

Commit

Permalink
add license header & license.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dongxu committed Nov 8, 2014
1 parent 123a198 commit 6a4ac2d
Show file tree
Hide file tree
Showing 75 changed files with 243 additions and 0 deletions.
21 changes: 21 additions & 0 deletions MIT-LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Wandoujia Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
3 changes: 3 additions & 0 deletions cmd/cconfig/action.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cconfig/dashboard.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cconfig/dashboard_apis.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cconfig/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cconfig/migrate_helper.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cconfig/migrate_task.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cconfig/proxy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cconfig/rebalancer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cconfig/server_group.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/cconfig/slot.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/proxy/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/args/args.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package args

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/cmd/decode.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/cmd/dump.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/cmd/restore.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/cmd/sync.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/cmd/utils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/cmd/worker.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package cmd

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/rdb/decode.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package rdb

import "fmt"
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/rdb/decode_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package rdb

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/rdb/digest/crc64.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package digest

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/rdb/loader.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package rdb

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/rdb/loader_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package rdb

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/rdb/reader.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package rdb

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-port/utils/runtime.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package utils

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/basic_hash.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/basic_incr.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/basic_mgrt.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/bench/benchmark.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/extra_del.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/extra_incr.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/extra_memleak.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/extra_mget.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/test_hset.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/test_incr1.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/test_incr2.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/test_list.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/test_mget.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/test_mset.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/test_pttl.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/test_string.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions ext/redis-test/utils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/models/action.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package models

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/models/action_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package models

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/models/consts.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package models

const (
Expand Down
3 changes: 3 additions & 0 deletions pkg/models/proxy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package models

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/models/proxy_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package models

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/models/server_group.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package models

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/models/server_group_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package models

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/models/slot.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package models

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/models/slots_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package models

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/cachepool/cachepool.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package cachepool

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/cachepool/cachepool_test.go
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Copyright 2014 Wandoujia Inc. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.

package cachepool
Loading

0 comments on commit 6a4ac2d

Please sign in to comment.