 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryTuple ¶
type QueryTuple struct {
	// Query string.
	Query string
	// Backend name.
	Backend string
	// Range info.
	Range string
}
    QueryTuple tuple.
type RequestContext ¶
type RequestContext struct {
	RawQuery string
	Mode     RequestMode
	TxnMode  TxnMode
	Querys   []QueryTuple
}
    RequestContext tuple.
func NewRequestContext ¶
func NewRequestContext() *RequestContext
NewRequestContext creates RequestContext The default Mode is ReqNormal
type RequestMode ¶
type RequestMode int
RequestMode type.
const ( // ReqNormal mode will send the query to the backend which computed by the planner. // This is the default mode. ReqNormal RequestMode = iota // ReqScatter mode will send the RawQuery to all backends. ReqScatter // ReqSingle mode will send the RawQuery to the first normal backend which computed by the scatter, // it is random sometimes. ReqSingle )
type ResultContext ¶
ResultContext tuple.
func NewResultContext ¶
func NewResultContext() *ResultContext
NewResultContext returns the result context.
       Source Files
      ¶
      Source Files
      ¶
    
- xcontext.go
 Click to show internal directories. 
   Click to hide internal directories.