Package gocql implements a fast and robust ScyllaDB client for the Go programming language.
BSD 3-Clause "New" or "Revised" License
169
stars
47
forks
source link
Recent changes made imposible to have custom implementations for common interfaces #183
Closed
dkropachev closed 1 month ago
Having private interface
token
: https://github.com/scylladb/gocql/blob/7f7905db2c37b557fd406596b3f7c456ed3ea1d3/token.go#L27-L30 Andpartitioner
: https://github.com/scylladb/gocql/blob/7f7905db2c37b557fd406596b3f7c456ed3ea1d3/token.go#L20-L24In public interfaces totaly breaks possibility of their custom implementation. Affected interfaces:
SelectedHost
: https://github.com/scylladb/gocql/blob/7f7905db2c37b557fd406596b3f7c456ed3ea1d3/policies.go#L324-L328ExecutableQuery
: https://github.com/scylladb/gocql/blob/3c32c6cd75e529433ed0885d8c04ec4c96cf22a9/query_executor.go#L9-L28NextHost
, because of references toSelectedHost
https://github.com/scylladb/gocql/blob/7f7905db2c37b557fd406596b3f7c456ed3ea1d3/policies.go#L346HostSelectionPolicy
, because of reference toNextHost