tls

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package tls provides goroutine-local storage it is meant to be used only for tooling and instrumenting purpose, and should be avoided in production code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLSBuilder

type TLSBuilder struct {
	// contains filtered or unexported fields
}

func New

func New() *TLSBuilder

func (*TLSBuilder) Declare

func (c *TLSBuilder) Declare() TLSKey

func (*TLSBuilder) Inherit

func (c *TLSBuilder) Inherit() *TLSBuilder

func (*TLSBuilder) Name

func (c *TLSBuilder) Name(name string) *TLSBuilder

type TLSKey

type TLSKey interface {
	Get() interface{}
	GetOK() (interface{}, bool)
	Set(v interface{})
}

func Declare

func Declare(name string) TLSKey

func DeclareInherit

func DeclareInherit(name string) TLSKey

Jump to

Keyboard shortcuts

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