Merge pull request #5 from MJDSys/gogoprotobuf_fix
Change all references to code.google.com/p/gogoprotobuf to github.com…
This commit is contained in:
commit
36632d4916
6 changed files with 12 additions and 15 deletions
|
@ -1,8 +1,8 @@
|
||||||
package reaper
|
package reaper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/gogoprotobuf/proto"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/gogo/protobuf/proto"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
|
@ -13,18 +13,18 @@ It has these top-level messages:
|
||||||
*/
|
*/
|
||||||
package protobuf
|
package protobuf
|
||||||
|
|
||||||
import proto "code.google.com/p/gogoprotobuf/proto"
|
import proto "github.com/gogo/protobuf/proto"
|
||||||
import json "encoding/json"
|
import fmt "fmt"
|
||||||
import math "math"
|
import math "math"
|
||||||
|
|
||||||
// Reference proto, json, and math imports to suppress error if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
var _ = proto.Marshal
|
var _ = proto.Marshal
|
||||||
var _ = &json.SyntaxError{}
|
var _ = fmt.Errorf
|
||||||
var _ = math.Inf
|
var _ = math.Inf
|
||||||
|
|
||||||
type Session struct {
|
type Session struct {
|
||||||
Values []byte `protobuf:"bytes,1,opt" json:"Values,omitempty"`
|
Values []byte `protobuf:"bytes,1,opt,name=Values" json:"Values,omitempty"`
|
||||||
ExpiresAt *int64 `protobuf:"varint,2,opt" json:"ExpiresAt,omitempty"`
|
ExpiresAt *int64 `protobuf:"varint,2,opt,name=ExpiresAt" json:"ExpiresAt,omitempty"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,6 +45,3 @@ func (m *Session) GetExpiresAt() int64 {
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
|
||||||
}
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package shared
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.google.com/p/gogoprotobuf/proto"
|
"github.com/gogo/protobuf/proto"
|
||||||
"github.com/yosssi/boltstore/shared/protobuf"
|
"github.com/yosssi/boltstore/shared/protobuf"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package shared
|
package shared
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/yosssi/boltstore/shared/protobuf"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
"github.com/yosssi/boltstore/shared/protobuf"
|
|
||||||
|
|
||||||
"code.google.com/p/gogoprotobuf/proto"
|
"github.com/gogo/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSession(t *testing.T) {
|
func TestSession(t *testing.T) {
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/base32"
|
"encoding/base32"
|
||||||
"encoding/gob"
|
"encoding/gob"
|
||||||
|
"github.com/gogo/protobuf/proto"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
"code.google.com/p/gogoprotobuf/proto"
|
|
||||||
|
|
||||||
"github.com/boltdb/bolt"
|
"github.com/boltdb/bolt"
|
||||||
"github.com/gorilla/securecookie"
|
"github.com/gorilla/securecookie"
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.google.com/p/gogoprotobuf/proto"
|
"github.com/gogo/protobuf/proto"
|
||||||
|
|
||||||
"github.com/boltdb/bolt"
|
"github.com/boltdb/bolt"
|
||||||
"github.com/gorilla/securecookie"
|
"github.com/gorilla/securecookie"
|
||||||
|
|
Loading…
Reference in a new issue