package meta
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/meta"
Index ¶
- Constants
- func WithAllowFeatures(ctx context.Context, features ...string) context.Context
- func WithRequestType(ctx context.Context, requestType string) context.Context
- func WithTraceID(ctx context.Context, traceID string) context.Context
- func WithUserAgent(ctx context.Context, userAgent string) context.Context
- type Meta
- type Option
Constants ¶
const ( // outgoing headers HeaderDatabase = "x-ydb-database" HeaderTicket = "x-ydb-auth-ticket" HeaderVersion = "x-ydb-sdk-build-info" HeaderRequestType = "x-ydb-request-type" HeaderTraceID = "x-ydb-trace-id" HeaderUserAgent = "x-ydb-user-agent" HeaderClientCapabilities = "x-ydb-client-capabilities" // outgoing hints HintSessionBalancer = "session-balancer" // incomming headers HeaderServerHints = "x-ydb-server-hints" // incoming hints HintSessionClose = "session-close" )
const ( VersionMajor = "3" VersionMinor = "35" VersionPatch = "0" )
const Version = VersionMajor + "." + VersionMinor + "." + VersionPatch
Functions ¶
func WithAllowFeatures ¶
WithAllowFeatures returns a copy of parent context with allowed client feature
func WithRequestType ¶
WithRequestType returns a copy of parent context with custom request type
func WithTraceID ¶
WithTraceID returns a copy of parent context with traceID
func WithUserAgent ¶
WithUserAgent returns a copy of parent context with custom user-agent info
Types ¶
type Meta ¶
func New ¶
func New( database string, credentials credentials.Credentials, trace trace.Driver, opts ...Option, ) Meta
type Option ¶
type Option func(m *meta)
func AllowOption ¶
func ForbidOption ¶
func WithRequestTypeOption ¶
func WithUserAgentOption ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal/meta/test |
- Version
- v3.35.0
- Published
- Aug 19, 2022
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 1 minute ago –
Tools for package owners.