Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextWrapper ¶
type ContextWrapper[I, D any] struct { // contains filtered or unexported fields }
ContextWrapper is a wrapper around a type that implements the qlbridge.ContextReader interface.
func NewContextWrapper ¶
func NewContextWrapper[I, D any]( id I, data D, extractor schema.PathExtractor[D], flatter schema.Flatter[D], ) *ContextWrapper[I, D]
NewContextWrapper creates a new ContextWrapper.
func (*ContextWrapper[I, D]) Get ¶
func (c *ContextWrapper[I, D]) Get(key string) (qlvalue.Value, bool)
Get implements the qlbridge.ContextReader interface.
func (*ContextWrapper[I, D]) Row ¶
func (c *ContextWrapper[I, D]) Row() map[string]qlvalue.Value
Row implements the qlbridge.ContextReader interface. I don't know what this is supposed to do.
func (*ContextWrapper[I, D]) Ts ¶
func (c *ContextWrapper[I, D]) Ts() time.Time
Ts implements the qlbridge.ContextReader interface. I don't know what this is supposed to do.
Click to show internal directories.
Click to hide internal directories.