// QueryInfo represents data required for host selection policy to create query plan.
// Token and strategy are only necessary for token aware policies.
type QueryInfo struct {
tokenAware bool
token Token
topology *topology
strategy strategy
offset uint64 // For round robin strategies.
}
This creates a problem that its impossible to create a custom HostSelectionPolicy outside of transport package that would make any use of QueryInfo
QueryInfo
contains only unexported fields:This creates a problem that its impossible to create a custom
HostSelectionPolicy
outside oftransport
package that would make any use ofQueryInfo