All Projects → modern-go → gls

modern-go / gls

Licence: Apache-2.0 license
goroutine local storage (use context instead if possible)

Programming Languages

go
31211 projects - #10 most used programming language
assembly
5116 projects
c
50402 projects - #5 most used programming language
shell
77523 projects

Labels

Projects that are alternatives of or similar to gls

cie-cns-apache-docker
L'obiettivo di questo progetto è quello di fornire un template pronto all'uso che realizza un sistema di autenticazione tramite la Smart Card TS-CNS (o CNS) e la CIE (Carta d'Identità Elettronica) basato su Apache HTTP. Ognuno può poi modificare o specializzare questo progetto sulla base delle proprie esigenze Si tratta di un progetto docker per…
Stars: ✭ 48 (-7.69%)
Mutual labels:  tls
openssl
Fork of OpenSSL that includes prototype quantum-resistant algorithms and ciphersuites based on liboqs
Stars: ✭ 215 (+313.46%)
Mutual labels:  tls
matrix multiplication
Parallel Matrix Multiplication Using OpenMP, Phtreads, and MPI
Stars: ✭ 41 (-21.15%)
Mutual labels:  thread
tape-recorder
BSV Hackathon: Use Tape Recorder to record any computation onto Bitcoin Script using a Wang B machine written in Forth
Stars: ✭ 22 (-57.69%)
Mutual labels:  thread
thread-priority
A simple thread schedule and priority library for rust
Stars: ✭ 48 (-7.69%)
Mutual labels:  thread
acmed
ACME (RFC 8555) client daemon
Stars: ✭ 121 (+132.69%)
Mutual labels:  tls
wolfssl-py
Python wrapper for wolfSSL embedded SSL/TLS library.
Stars: ✭ 30 (-42.31%)
Mutual labels:  tls
TLS-Redirection
TLS Redirection
Stars: ✭ 109 (+109.62%)
Mutual labels:  tls
spinach
Modern Redis task queue for Python 3
Stars: ✭ 46 (-11.54%)
Mutual labels:  thread
ssl-cert-check
Check expiry dates of local and remote SSL certificates
Stars: ✭ 28 (-46.15%)
Mutual labels:  tls
tlstools
🔐 CLI tool to analyze, troubleshoot or inspect SSL certificates, requests or keys.
Stars: ✭ 45 (-13.46%)
Mutual labels:  tls
WIZ750SR
WIZnet Serial to Ethernet(S2E) module based on W7500 chip, WIZ107/108SR S2E compatible device
Stars: ✭ 13 (-75%)
Mutual labels:  tls
mcfgthread
Cornerstone of the MOST efficient std::thread on Windows for mingw-w64
Stars: ✭ 143 (+175%)
Mutual labels:  thread
helix-sandbox
Middleware for secure IoT provisioning, access and control.
Stars: ✭ 23 (-55.77%)
Mutual labels:  tls
AsyncKeepAlive
AsyncKeepAlive is a plugin that keep the players' connections alive
Stars: ✭ 13 (-75%)
Mutual labels:  thread
tlstun
A socks tunnel client and server using websockets over http and tls
Stars: ✭ 36 (-30.77%)
Mutual labels:  tls
sslcontext-kickstart
🔐 A lightweight high level library for configuring a http client or server based on SSLContext or other properties such as TrustManager, KeyManager or Trusted Certificates to communicate over SSL TLS for one way authentication or two way authentication provided by the SSLFactory. Support for Java, Scala and Kotlin based clients with examples. Av…
Stars: ✭ 295 (+467.31%)
Mutual labels:  tls
haxe-concurrent
A haxelib for basic platform-agnostic concurrency support
Stars: ✭ 69 (+32.69%)
Mutual labels:  thread
mulle-thread
🔠 Cross-platform thread/mutex/tss/atomic operations in C
Stars: ✭ 22 (-57.69%)
Mutual labels:  thread
netman
高性能的TCP网络框架、支持TLS、可配置的路由、websocket、基于事件循环(epoll),百万连接(C1000K)
Stars: ✭ 96 (+84.62%)
Mutual labels:  tls

goroutine local storage

Sourcegraph GoDoc Build Status codecov rcard License

Thanks https://github.com/huandu/go-tls for original idea

  • get current goroutine id
  • goroutine local storage

require go version >= 1.4

gls.GoID

get the identifier unique for this goroutine

go func() {
	gls.GoID()
}()
go func() {
	gls.GoID()
}()

gls.Set / gls.Get

goroutine local storage is a map[interface{}]interface{} local to current goroutine

It is intended to be used by framworks to simplify context passing.

Use context.Context to pass context if possible.

gls.Set("user_id", "abc")
doSomeThing()

func doSomeThing() {
	gls.Get("user_id") // will be "abc"
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].