implement JWT tokens
This commit is contained in:
6
vendor/github.com/gocql/gocql/control.go
generated
vendored
6
vendor/github.com/gocql/gocql/control.go
generated
vendored
@@ -66,9 +66,9 @@ func (c *controlConn) getSession() *Session {
|
||||
func createControlConn(session *Session) *controlConn {
|
||||
|
||||
control := &controlConn{
|
||||
session: session,
|
||||
quit: make(chan struct{}),
|
||||
retry: &SimpleRetryPolicy{NumRetries: 3},
|
||||
session: session,
|
||||
quit: make(chan struct{}),
|
||||
retry: &SimpleRetryPolicy{NumRetries: 3},
|
||||
}
|
||||
|
||||
control.conn.Store((*connHost)(nil))
|
||||
|
4
vendor/github.com/gocql/gocql/metadata_cassandra.go
generated
vendored
4
vendor/github.com/gocql/gocql/metadata_cassandra.go
generated
vendored
@@ -329,7 +329,7 @@ func compileMetadata(
|
||||
keyspace.Functions[functions[i].Name] = &functions[i]
|
||||
}
|
||||
keyspace.Aggregates = make(map[string]*AggregateMetadata, len(aggregates))
|
||||
for i := range aggregates {
|
||||
for i, _ := range aggregates {
|
||||
aggregates[i].FinalFunc = *keyspace.Functions[aggregates[i].finalFunc]
|
||||
aggregates[i].StateFunc = *keyspace.Functions[aggregates[i].stateFunc]
|
||||
keyspace.Aggregates[aggregates[i].Name] = &aggregates[i]
|
||||
@@ -352,7 +352,7 @@ func compileMetadata(
|
||||
keyspace.UserTypes[types[i].Name] = &types[i]
|
||||
}
|
||||
keyspace.MaterializedViews = make(map[string]*MaterializedViewMetadata, len(materializedViews))
|
||||
for i := range materializedViews {
|
||||
for i, _ := range materializedViews {
|
||||
materializedViews[i].BaseTable = keyspace.Tables[materializedViews[i].baseTableName]
|
||||
keyspace.MaterializedViews[materializedViews[i].Name] = &materializedViews[i]
|
||||
}
|
||||
|
3
vendor/github.com/gocql/gocql/serialization/decimal/marshal.go
generated
vendored
3
vendor/github.com/gocql/gocql/serialization/decimal/marshal.go
generated
vendored
@@ -1,9 +1,8 @@
|
||||
package decimal
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"gopkg.in/inf.v0"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
func Marshal(value interface{}) ([]byte, error) {
|
||||
|
3
vendor/github.com/gocql/gocql/serialization/decimal/marshal_utils.go
generated
vendored
3
vendor/github.com/gocql/gocql/serialization/decimal/marshal_utils.go
generated
vendored
@@ -2,13 +2,12 @@ package decimal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gopkg.in/inf.v0"
|
||||
"math/big"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"gopkg.in/inf.v0"
|
||||
|
||||
"github.com/gocql/gocql/serialization/varint"
|
||||
)
|
||||
|
||||
|
3
vendor/github.com/gocql/gocql/serialization/decimal/unmarshal.go
generated
vendored
3
vendor/github.com/gocql/gocql/serialization/decimal/unmarshal.go
generated
vendored
@@ -2,9 +2,8 @@ package decimal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
"gopkg.in/inf.v0"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
func Unmarshal(data []byte, value interface{}) error {
|
||||
|
3
vendor/github.com/gocql/gocql/serialization/decimal/unmarshal_utils.go
generated
vendored
3
vendor/github.com/gocql/gocql/serialization/decimal/unmarshal_utils.go
generated
vendored
@@ -2,11 +2,10 @@ package decimal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gopkg.in/inf.v0"
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
||||
"gopkg.in/inf.v0"
|
||||
|
||||
"github.com/gocql/gocql/serialization/varint"
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user