Categorygithub.com/HayoVanLoon/go-netcontext
modulepackage
0.0.0-20241106092102-d9454141fd22
Repository: https://github.com/hayovanloon/go-netcontext.git
Documentation: pkg.go.dev

# README

Net Context

License

Copyright 2024 Hayo van Loon

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Deadline returns the Entry to be used for propagating the standard Go context.
DefaultToString is a convenience wrapper around fmt.Sprintf.
No description provided by the author
GRPCMetadataPrefix returns the prefix for gRPC metadata keys.
HTTPHeaderPrefix returns the prefix for HTTP headers.
Int adds an Entry for an int context value.
Int32 adds an Entry for an int32 context value.
Int64 adds an Entry for an int64 context value.
Log logs a message.
NoStandardDeadLine will disable propagation of the standard Go context deadline.
Reset resets the configuration to its default state.
Set adds an Entry with the given parameters.
SetGRPCMetadataPrefix sets the prefix for gRPC metadata keys.
SetHTTPHeaderPrefix sets the prefix for HTTP headers.
SetLogger sets the log function.
SetPrefixes sets the same header/metadata prefix for both HTTP/gRPC.
String adds an Entry for a string context value.
Time adds an Entry for a time.Time context value.

# Constants

DefaultHeaderPrefix is the default prefix for HTTP headers and gRPC metadata keys.

# Variables

TimeFormat used for time.Time context values.

# Structs

No description provided by the author
Entry
An Entry describes how to handle the serialisation and deserialisation of a context value.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author