Documentation
¶
Index ¶
- Constants
- func GetAdditionalHeaders(ctx context.Context) (map[string]string, bool)
- func IsAsync(ctx context.Context) bool
- func IsStreaming(ctx context.Context) bool
- func WithAdditionalHeaders(ctx context.Context, headers map[string]string) context.Context
- func WithAsync(ctx context.Context) context.Context
- func WithPreparedStatementsStyle(ctx context.Context, style PreparedStatementsStyle) context.Context
- func WithStreaming(ctx context.Context) context.Context
- type ContextKey
- type PreparedStatementsStyle
Constants ¶
View Source
const AdditionalHeadersContextKey = ContextKey("additionalHeaders")
View Source
const AsyncContextKey = ContextKey("async")
View Source
const PreparedStatementsStyleContextKey = ContextKey("preparedStatementsStyle")
View Source
const StreamingContextKey = ContextKey("streaming")
Variables ¶
This section is empty.
Functions ¶
func GetAdditionalHeaders ¶
func IsStreaming ¶
func WithAdditionalHeaders ¶
func WithPreparedStatementsStyle ¶ added in v1.9.0
func WithPreparedStatementsStyle(ctx context.Context, style PreparedStatementsStyle) context.Context
Types ¶
type ContextKey ¶
type ContextKey string
type PreparedStatementsStyle ¶ added in v1.9.0
type PreparedStatementsStyle int
const ( PreparedStatementsStyleNative PreparedStatementsStyle = iota PreparedStatementsStyleFbNumeric )
func GetPreparedStatementsStyle ¶ added in v1.9.0
func GetPreparedStatementsStyle(ctx context.Context) PreparedStatementsStyle
Click to show internal directories.
Click to hide internal directories.