Help us shape the future of Go! Take the 2026 Go Developer Survey

transmeta

package
v0.16.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Overview

Package transmeta .

Index

Constants

View Source
const (
	HTTPDestService   = "destination-service"
	HTTPDestAddr      = "destination-addr"
	HTTPSourceService = "source-service"

	// supply metadata
	HTTPDestMethod   = "destination-method"
	HTTPSourceMethod = "source-method"

	HTTPStreamLogID = "stream-log-id"
)

Key of http transit info.

Only used by grpc. must be in lower case as per http2 spec See: https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2

View Source
const (
	MeshVersion uint16 = iota
	TransportType
	LogID
	FromService
	FromCluster
	FromIDC
	ToService
	ToCluster
	ToIDC
	ToMethod
	Env
	DestAddress
	RPCTimeout
	ReadTimeout
	RingHashKey
	DDPTag
	WithMeshHeader
	ConnectTimeout
	SpanContext
	ShortConnection
	FromMethod
	StressTag
	MsgType
	HTTPContentType
	RawRingHashKey
	LBType
)

Keys in mesh header.

View Source
const (
	HeaderIDLServiceName      = "isn"
	HeaderTransRemoteAddr     = "rip"
	HeaderTransToCluster      = "tc"
	HeaderTransToIDC          = "ti"
	HeaderTransPerfTConnStart = "pcs"
	HeaderTransPerfTConnEnd   = "pce"
	HeaderTransPerfTSendStart = "pss"
	HeaderTransPerfTRecvStart = "prs"
	HeaderTransPerfTRecvEnd   = "pre"
	// the connection peer will shutdown later,so it send back the header to tell client to close the connection.
	HeaderConnectionReadyToReset = "crrst"
	HeaderProcessAtTime          = "K_ProcessAtTime"
	// HeaderCRC32C is used to store the crc32c checksum of payload
	HeaderCRC32C = "crc32c"
)

key of header transport

View Source
const (
	// GDPRToken is used to set up gdpr token into InfoIDACLToken
	GDPRToken = metainfo.PrefixTransient + "gdpr-token"
)

key of acl token You can set up acl token through metainfo. eg:

ctx = metainfo.WithValue(ctx, "gdpr-token", "your token")

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL