Documentation ¶
Index ¶
Constants ¶
View Source
const ( // outgoing headers MetaDatabase = "x-ydb-database" MetaTicket = "x-ydb-auth-ticket" MetaVersion = "x-ydb-sdk-build-info" MetaRequestType = "x-ydb-request-types" MetaTraceID = "x-ydb-trace-id" MetaUserAgent = "x-ydb-user-agent" // incomming headers MetaServerHints = "x-ydb-server-hints" // hints MetaSessionClose = "session-close" )
View Source
const (
Version = "ydb-go-sdk/3.8.11"
)
Variables ¶
This section is empty.
Functions ¶
func WithTraceID ¶
WithTraceID returns a copy of parent deadline 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 }
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.