Documentation ¶
Index ¶
Constants ¶
View Source
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" // incomming headers HeaderServerHints = "x-ydb-server-hints" // hints HintSessionClose = "session-close" )
View Source
const ( VersionMajor = "3" VersionMinor = "15" VersionPatch = "1" )
Variables ¶
This section is empty.
Functions ¶
func WithRequestType ¶ added in v3.13.0
WithRequestType returns a copy of parent context with custom request type
func WithTraceID ¶
WithTraceID returns a copy of parent context with traceID
Types ¶
type Meta ¶
type Meta interface { Meta(ctx context.Context) (context.Context, error) WithDatabase(database string) Meta WithCredentials(creds credentials.Credentials) Meta WithUserAgent(userAgent string) Meta Database() string UserAgent() string }
func New ¶
func New( database string, credentials credentials.Credentials, trace trace.Driver, requestsType string, userAgent string, ) Meta
Click to show internal directories.
Click to hide internal directories.