chunk_id large_stringlengths 36 36 | doc_type large_stringclasses 2
values | category large_stringclasses 17
values | document large_stringclasses 50
values | version_raw large_stringclasses 590
values | chunk_index int64 0 262 | text large_stringlengths 11 5.69k | file_path large_stringclasses 882
values |
|---|---|---|---|---|---|---|---|
ff3296c7-0175-53ec-8aec-b7020be0dd14 | docs | golang | golang_sync | go1220 | 27 | positive delta that start when the counter is greater than zero, may happen
at any time.
Typically this means the calls to Add should execute before the statement
creating the goroutine or other event to be waited for.
If a WaitGroup is reused to wait for several independent sets of events,
new Add calls must happen af... | large_dataset/raw/docs/golang/sync/sync_go1220.md |
e1c4694b-8195-52fa-b761-b7b5cb4bcf3c | docs | golang | golang_sync | go1230 | 0 | # Golang - sync
Source: https://pkg.go.dev/sync@go1.23.0
Version: go1.23.0
## Documentation [¶](#section-documentation "Go to Documentation")
### Overview [¶](#pkg-overview "Go to Overview")
Package sync provides basic synchronization primitives such as mutual
exclusion locks. Other than the [Once](#Once) and [Wait... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
6e3b12f4-878f-5f5a-96de-992d27da31d6 | docs | golang | golang_sync | go1230 | 1 | * [type Map](#Map)
* + [func (m \*Map) Clear()](#Map.Clear)
+ [func (m \*Map) CompareAndDelete(key, old any) (deleted bool)](#Map.CompareAndDelete)
+ [func (m \*Map) CompareAndSwap(key, old, new any) (swapped bool)](#Map.CompareAndSwap)
+ [func (m \*Map) Delete(key any)](#Map.Delete)
+ [func (m \*Map) Load(key ... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
f1fc9f33-5491-5d4a-9fb3-f7b57273adf9 | docs | golang | golang_sync | go1230 | 2 | * + [func (p \*Pool) Get() any](#Pool.Get)
+ [func (p \*Pool) Put(x any)](#Pool.Put)
* [type RWMutex](#RWMutex)
* + [func (rw \*RWMutex) Lock()](#RWMutex.Lock)
+ [func (rw \*RWMutex) RLock()](#RWMutex.RLock)
+ [func (rw \*RWMutex) RLocker() Locker](#RWMutex.RLocker)
+ [func (rw \*RWMutex) RUnlock()](#RWMutex.RU... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
cbb5bc80-c473-596a-a981-adaf1c9bdb82 | docs | golang | golang_sync | go1230 | 3 | ### Constants [¶](#pkg-constants "Go to Constants")
This section is empty.
### Variables [¶](#pkg-variables "Go to Variables")
This section is empty.
### Functions [¶](#pkg-functions "Go to Functions")
#### func [OnceFunc](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/oncefunc.go;l=11) [¶](#OnceFunc "Go t... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
8c3e2bb2-bebd-5fc1-a0e4-f2d43b079fa7 | docs | golang | golang_sync | go1230 | 4 | Example [¶](#example-OnceValue "Go to Example")
This example uses OnceValue to perform an "expensive" computation just once,
even when used concurrently.
```None
package main
import (
"fmt"
"sync"
)
func main() {
once := sync.OnceValue(func() int {
sum := 0
for i := 0; i < 1000; i++ {
sum += i
}
fmt.P... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
22518e24-f090-5950-a2c9-d1cb70b4e4d0 | docs | golang | golang_sync | go1230 | 5 | returned by f. The returned function may be called concurrently.
If f panics, the returned function will panic with the same value on every call.
Example [¶](#example-OnceValues "Go to Example")
This example uses OnceValues to read a file just once.
```None
package main
import (
"fmt"
"os"
"sync"
)
func main()... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
781ec340-f263-5fcc-be6d-969505466bcc | docs | golang | golang_sync | go1230 | 6 | #### type [Cond](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/cond.go;l=37) [¶](#Cond "Go to Cond")
```None
type Cond struct {
// L is held while observing or changing the condition
L Locker
// contains filtered or unexported fields
}
```
Cond implements a condition variable, a rendezvous point
for goro... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
9ec4d20c-0dd3-5de8-af13-ff0fb4d62d32 | docs | golang | golang_sync | go1230 | 7 | For more on replacements for [sync.Cond](#Cond), see [Roberto Clapis's series on
advanced concurrency patterns](https://blogtitle.github.io/categories/concurrency/), as well as [Bryan Mills's talk on concurrency
patterns](https://drive.google.com/file/d/1nPdvhB0PutEJzdCq5ms6UI58dp50fcAN/view).
#### func [NewCond](http... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
dc88c434-b3ad-58d2-8be1-d17813a9cd86 | docs | golang | golang_sync | go1230 | 8 | #### func (\*Cond) [Signal](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/cond.go;l=82) [¶](#Cond.Signal "Go to Cond.Signal")
```None
func (c *Cond) Signal()
```
Signal wakes one goroutine waiting on c, if there is any.
It is allowed but not required for the caller to hold c.L
during the call.
Signal() doe... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
1d422bae-6077-5b4e-83d2-2bde0f1e5f8b | docs | golang | golang_sync | go1230 | 9 | Wait returns. Instead, the caller should Wait in a loop:
```None
c.L.Lock()
for !condition() {
c.Wait()
}
... make use of condition ...
c.L.Unlock()
```
#### type [Locker](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/mutex.go;l=42) [¶](#Locker "Go to Locker")
```None
type Locker interface {
Lock()
Un... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
13369c84-fd61-5dd0-ba83-3a6326c54474 | docs | golang | golang_sync | go1230 | 10 | The Map type is optimized for two common use cases: (1) when the entry for a given
key is only ever written once but read many times, as in caches that only grow,
or (2) when multiple goroutines read, write, and overwrite entries for disjoint
sets of keys. In these two cases, use of a Map may significantly reduce lock
... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
1bab10dd-a5cf-57e7-a4cf-beca510f7f1b | docs | golang | golang_sync | go1230 | 11 | [Map.Delete](#Map.Delete), [Map.LoadAndDelete](#Map.LoadAndDelete), [Map.Store](#Map.Store), and [Map.Swap](#Map.Swap) are write operations;
[Map.LoadOrStore](#Map.LoadOrStore) is a write operation when it returns loaded set to false;
[Map.CompareAndSwap](#Map.CompareAndSwap) is a write operation when it returns swappe... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
387705e7-471b-51bf-947f-b4e5d9b7a88f | docs | golang | golang_sync | go1230 | 12 | The old value must be of a comparable type.
If there is no current value for key in the map, CompareAndDelete
returns false (even if the old value is the nil interface value).
#### func (\*Map) [CompareAndSwap](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/map.go;l=398) [¶](#Map.CompareAndSwap "Go to Map.Com... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
0807b9dc-2a09-5938-8afe-e12bd4e9e4d9 | docs | golang | golang_sync | go1230 | 13 | Load returns the value stored in the map for a key, or nil if no
value is present.
The ok result indicates whether value was found in the map.
#### func (\*Map) [LoadAndDelete](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/map.go;l=296) [¶](#Map.LoadAndDelete "Go to Map.LoadAndDelete") added in go1.15
```Non... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
c6fe816d-2a91-5c79-923f-2becd858da4e | docs | golang | golang_sync | go1230 | 14 | #### func (\*Map) [Range](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/map.go;l=473) [¶](#Map.Range "Go to Map.Range") added in go1.9
```None
func (m *Map) Range(f func(key, value any) bool)
```
Range calls f sequentially for each key and value present in the map.
If f returns false, range stops the iterati... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
ab6919fa-1066-55d9-827b-c0364db05a2b | docs | golang | golang_sync | go1230 | 15 | #### func (\*Map) [Store](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/map.go;l=157) [¶](#Map.Store "Go to Map.Store") added in go1.9
```None
func (m *Map) Store(key, value any)
```
Store sets the value for a key.
#### func (\*Map) [Swap](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/map.go;l=354)... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
bce76ded-3eff-5c3d-bf81-98fa4f44f4eb | docs | golang | golang_sync | go1230 | 16 | the n'th call to [Mutex.Unlock](#Mutex.Unlock) “synchronizes before” the m'th call to [Mutex.Lock](#Mutex.Lock)
for any n < m.
A successful call to [Mutex.TryLock](#Mutex.TryLock) is equivalent to a call to Lock.
A failed call to TryLock does not establish any “synchronizes before”
relation at all.
#### func (\*Mutex)... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
07315975-5f3f-5a85-bea3-17b49265676f | docs | golang | golang_sync | go1230 | 17 | #### func (\*Mutex) [Unlock](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/mutex.go;l=214) [¶](#Mutex.Unlock "Go to Mutex.Unlock")
```None
func (m *Mutex) Unlock()
```
Unlock unlocks m.
It is a run-time error if m is not locked on entry to Unlock.
A locked [Mutex](#Mutex) is not associated with a particular... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
d098943f-d424-5e16-853c-135bcb5b644e | docs | golang | golang_sync | go1230 | 18 | fmt.Println("Only once")
}
done := make(chan bool)
for i := 0; i < 10; i++ {
go func() {
once.Do(onceBody)
done <- true
}()
}
for i := 0; i < 10; i++ {
<-done
}
}
```
```None
Output:
Only once
```
Share
Format
Run
#### func (\*Once) [Do](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/onc... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
cddc621e-b6b1-547c-abcc-505eb29d9b7d | docs | golang | golang_sync | go1230 | 19 | Because no call to Do returns until the one call to f returns, if f causes
Do to be called, it will deadlock.
If f panics, Do considers it to have returned; future calls of Do return
without calling f.
#### type [Pool](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/pool.go;l=51) [¶](#Pool "Go to Pool") added ... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
b1a5593b-e219-5998-94a9-1ad99e7837fd | docs | golang | golang_sync | go1230 | 20 | relieving pressure on the garbage collector. That is, it makes it easy to
build efficient, thread-safe free lists. However, it is not suitable for all
free lists.
An appropriate use of a Pool is to manage a group of temporary items
silently shared among and potentially reused by concurrent independent
clients of a pac... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
2f4ea236-38b6-51d7-ba1f-903a2c9abf3a | docs | golang | golang_sync | go1230 | 21 | a call to [Pool.Get](#Pool.Get) returning that same value x.
Similarly, a call to New returning x “synchronizes before”
a call to Get returning that same value x.
Example [¶](#example-Pool "Go to Example")
```None
package main
import (
"bytes"
"io"
"os"
"sync"
"time"
)
var bufPool = sync.Pool{
New: func() any... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
d8b9eadf-8d4a-5a15-8b5a-7b9e244fa3d0 | docs | golang | golang_sync | go1230 | 22 | Output:
2006-01-02T15:04:05Z path=/search?q=flowers
```
Share
Format
Run
#### func (\*Pool) [Get](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/pool.go;l=131) [¶](#Pool.Get "Go to Pool.Get") added in go1.3
```None
func (p *Pool) Get() any
```
Get selects an arbitrary item from the [Pool](#Pool), removes i... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
3ea219e6-5151-5530-bdef-2b44729b5d09 | docs | golang | golang_sync | go1230 | 23 | #### type [RWMutex](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/rwmutex.go;l=37) [¶](#RWMutex "Go to RWMutex")
```None
type RWMutex struct {
// contains filtered or unexported fields
}
```
A RWMutex is a reader/writer mutual exclusion lock.
The lock can be held by an arbitrary number of readers or a singl... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
8c6180c2-4d89-56d5-9528-303898001f5d | docs | golang | golang_sync | go1230 | 24 | For any call to RLock, there exists an n such that
the n'th call to Unlock “synchronizes before” that call to RLock,
and the corresponding call to [RWMutex.RUnlock](#RWMutex.RUnlock) “synchronizes before”
the n+1'th call to Lock.
#### func (\*RWMutex) [Lock](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/rwmut... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
9e04c0ea-cd59-5580-977f-e6b01622d696 | docs | golang | golang_sync | go1230 | 25 | #### func (\*RWMutex) [RLocker](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/rwmutex.go;l=238) [¶](#RWMutex.RLocker "Go to RWMutex.RLocker")
```None
func (rw *RWMutex) RLocker() Locker
```
RLocker returns a [Locker](#Locker) interface that implements
the [Locker.Lock] and [Locker.Unlock] methods by calling ... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
f73dba61-76d9-5cf7-bc07-27eb3d93e0f9 | docs | golang | golang_sync | go1230 | 26 | Note that while correct uses of TryLock do exist, they are rare,
and use of TryLock is often a sign of a deeper problem
in a particular use of mutexes.
#### func (\*RWMutex) [TryRLock](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/rwmutex.go;l=85) [¶](#RWMutex.TryRLock "Go to RWMutex.TryRLock") added in go1.1... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
31915513-0b90-5752-9a39-82ebec61d46a | docs | golang | golang_sync | go1230 | 27 | goroutine. One goroutine may [RWMutex.RLock](#RWMutex.RLock) ([RWMutex.Lock](#RWMutex.Lock)) a RWMutex and then
arrange for another goroutine to [RWMutex.RUnlock](#RWMutex.RUnlock) ([RWMutex.Unlock](#RWMutex.Unlock)) it.
#### type [WaitGroup](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/waitgroup.go;l=25) [¶... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
51db4ea9-94e3-5bb4-a39b-e995b2b019fb | docs | golang | golang_sync | go1230 | 28 | “synchronizes before” the return of any Wait call that it unblocks.
Example [¶](#example-WaitGroup "Go to Example")
This example fetches several URLs concurrently,
using a WaitGroup to block until all the fetches are complete.
```None
package main
import (
"sync"
)
type httpPkg struct{}
func (httpPkg) Get(url st... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
e402853f-1dc8-5d16-99cb-40a128893535 | docs | golang | golang_sync | go1230 | 29 | #### func (\*WaitGroup) [Add](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/waitgroup.go;l=45) [¶](#WaitGroup.Add "Go to WaitGroup.Add")
```None
func (wg *WaitGroup) Add(delta int)
```
Add adds delta, which may be negative, to the [WaitGroup](#WaitGroup) counter.
If the counter becomes zero, all goroutines b... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
9fe3eb5e-ae0b-5e97-8bad-6ed391ca66b6 | docs | golang | golang_sync | go1230 | 30 | #### func (\*WaitGroup) [Done](https://cs.opensource.google/go/go/+/go1.23.0:src/sync/waitgroup.go;l=88) [¶](#WaitGroup.Done "Go to WaitGroup.Done")
```None
func (wg *WaitGroup) Done()
```
Done decrements the [WaitGroup](#WaitGroup) counter by one.
#### func (\*WaitGroup) [Wait](https://cs.opensource.google/go/go/+/... | large_dataset/raw/docs/golang/sync/sync_go1230.md |
7db9ac24-0974-545f-aee1-bb1781a9659b | docs | golang | golang_sync | go1240 | 0 | # Golang - sync
Source: https://pkg.go.dev/sync@go1.24.0
Version: go1.24.0
## Documentation [¶](#section-documentation "Go to Documentation")
### Overview [¶](#pkg-overview "Go to Overview")
Package sync provides basic synchronization primitives such as mutual
exclusion locks. Other than the [Once](#Once) and [Wait... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
04dabd0a-461e-586e-9fca-6dc6f7150558 | docs | golang | golang_sync | go1240 | 1 | * [type Map](#Map)
* + [func (m \*Map) Clear()](#Map.Clear)
+ [func (m \*Map) CompareAndDelete(key, old any) (deleted bool)](#Map.CompareAndDelete)
+ [func (m \*Map) CompareAndSwap(key, old, new any) (swapped bool)](#Map.CompareAndSwap)
+ [func (m \*Map) Delete(key any)](#Map.Delete)
+ [func (m \*Map) Load(key ... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
225d537f-c544-506b-87f0-51ec1abf07cb | docs | golang | golang_sync | go1240 | 2 | * + [func (p \*Pool) Get() any](#Pool.Get)
+ [func (p \*Pool) Put(x any)](#Pool.Put)
* [type RWMutex](#RWMutex)
* + [func (rw \*RWMutex) Lock()](#RWMutex.Lock)
+ [func (rw \*RWMutex) RLock()](#RWMutex.RLock)
+ [func (rw \*RWMutex) RLocker() Locker](#RWMutex.RLocker)
+ [func (rw \*RWMutex) RUnlock()](#RWMutex.RU... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
60db2767-1feb-5d9b-94d6-20f22bd38ca0 | docs | golang | golang_sync | go1240 | 3 | ### Constants [¶](#pkg-constants "Go to Constants")
This section is empty.
### Variables [¶](#pkg-variables "Go to Variables")
This section is empty.
### Functions [¶](#pkg-functions "Go to Functions")
#### func [OnceFunc](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/oncefunc.go;l=11) [¶](#OnceFunc "Go t... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
2c194d7c-c35e-538e-ae0d-886aa1fce182 | docs | golang | golang_sync | go1240 | 4 | Example [¶](#example-OnceValue "Go to Example")
This example uses OnceValue to perform an "expensive" computation just once,
even when used concurrently.
```None
package main
import (
"fmt"
"sync"
)
func main() {
once := sync.OnceValue(func() int {
sum := 0
for i := 0; i < 1000; i++ {
sum += i
}
fmt.P... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
bb3c052a-1221-5829-a273-380504822bde | docs | golang | golang_sync | go1240 | 5 | returned by f. The returned function may be called concurrently.
If f panics, the returned function will panic with the same value on every call.
Example [¶](#example-OnceValues "Go to Example")
This example uses OnceValues to read a file just once.
```None
package main
import (
"fmt"
"os"
"sync"
)
func main()... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
b137ba01-f815-59d0-888c-72e650254ea3 | docs | golang | golang_sync | go1240 | 6 | #### type [Cond](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/cond.go;l=37) [¶](#Cond "Go to Cond")
```None
type Cond struct {
// L is held while observing or changing the condition
L Locker
// contains filtered or unexported fields
}
```
Cond implements a condition variable, a rendezvous point
for goro... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
c0ddb490-5099-5432-9d02-8574ecfdbbec | docs | golang | golang_sync | go1240 | 7 | For more on replacements for [sync.Cond](#Cond), see [Roberto Clapis's series on
advanced concurrency patterns](https://blogtitle.github.io/categories/concurrency/), as well as [Bryan Mills's talk on concurrency
patterns](https://drive.google.com/file/d/1nPdvhB0PutEJzdCq5ms6UI58dp50fcAN/view).
#### func [NewCond](http... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
d12b4238-dfa6-5ed9-bfcf-7a1f75543b31 | docs | golang | golang_sync | go1240 | 8 | #### func (\*Cond) [Signal](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/cond.go;l=82) [¶](#Cond.Signal "Go to Cond.Signal")
```None
func (c *Cond) Signal()
```
Signal wakes one goroutine waiting on c, if there is any.
It is allowed but not required for the caller to hold c.L
during the call.
Signal() doe... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
53627bb8-7b67-58fd-b51f-a0700b6ab2a5 | docs | golang | golang_sync | go1240 | 9 | Wait returns. Instead, the caller should Wait in a loop:
```None
c.L.Lock()
for !condition() {
c.Wait()
}
... make use of condition ...
c.L.Unlock()
```
#### type [Locker](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/mutex.go;l=37) [¶](#Locker "Go to Locker")
```None
type Locker interface {
Lock()
Un... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
c322a21b-ba6f-5ea5-bee1-0274c646d4cb | docs | golang | golang_sync | go1240 | 10 | The Map type is optimized for two common use cases: (1) when the entry for a given
key is only ever written once but read many times, as in caches that only grow,
or (2) when multiple goroutines read, write, and overwrite entries for disjoint
sets of keys. In these two cases, use of a Map may significantly reduce lock
... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
085a624a-9503-5985-b5bb-921a00556a8b | docs | golang | golang_sync | go1240 | 11 | [Map.Delete](#Map.Delete), [Map.LoadAndDelete](#Map.LoadAndDelete), [Map.Store](#Map.Store), and [Map.Swap](#Map.Swap) are write operations;
[Map.LoadOrStore](#Map.LoadOrStore) is a write operation when it returns loaded set to false;
[Map.CompareAndSwap](#Map.CompareAndSwap) is a write operation when it returns swappe... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
861d2c7a-4550-531e-bb48-56cbfa088046 | docs | golang | golang_sync | go1240 | 12 | The old value must be of a comparable type.
If there is no current value for key in the map, CompareAndDelete
returns false (even if the old value is the nil interface value).
#### func (\*Map) [CompareAndSwap](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/map.go;l=402) [¶](#Map.CompareAndSwap "Go to Map.Com... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
e653de96-e3a3-5938-ae67-f25b2be31de9 | docs | golang | golang_sync | go1240 | 13 | Load returns the value stored in the map for a key, or nil if no
value is present.
The ok result indicates whether value was found in the map.
#### func (\*Map) [LoadAndDelete](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/map.go;l=300) [¶](#Map.LoadAndDelete "Go to Map.LoadAndDelete") added in go1.15
```Non... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
6aa62c22-06da-5808-8c35-340537be53aa | docs | golang | golang_sync | go1240 | 14 | #### func (\*Map) [Range](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/map.go;l=477) [¶](#Map.Range "Go to Map.Range") added in go1.9
```None
func (m *Map) Range(f func(key, value any) bool)
```
Range calls f sequentially for each key and value present in the map.
If f returns false, range stops the iterati... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
7197ed20-dfa9-5cc2-a03b-07b37736a6d8 | docs | golang | golang_sync | go1240 | 15 | #### func (\*Map) [Store](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/map.go;l=161) [¶](#Map.Store "Go to Map.Store") added in go1.9
```None
func (m *Map) Store(key, value any)
```
Store sets the value for a key.
#### func (\*Map) [Swap](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/map.go;l=358)... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
35e867b0-9191-5536-8746-71de3ba59dd2 | docs | golang | golang_sync | go1240 | 16 | the n'th call to [Mutex.Unlock](#Mutex.Unlock) “synchronizes before” the m'th call to [Mutex.Lock](#Mutex.Lock)
for any n < m.
A successful call to [Mutex.TryLock](#Mutex.TryLock) is equivalent to a call to Lock.
A failed call to TryLock does not establish any “synchronizes before”
relation at all.
#### func (\*Mutex)... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
4ee72bf6-8de1-5204-82dd-95c9aa27821d | docs | golang | golang_sync | go1240 | 17 | #### func (\*Mutex) [Unlock](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/mutex.go;l=64) [¶](#Mutex.Unlock "Go to Mutex.Unlock")
```None
func (m *Mutex) Unlock()
```
Unlock unlocks m.
It is a run-time error if m is not locked on entry to Unlock.
A locked [Mutex](#Mutex) is not associated with a particular ... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
74e6b3e9-3c5a-50ad-b771-203144cbf467 | docs | golang | golang_sync | go1240 | 18 | fmt.Println("Only once")
}
done := make(chan bool)
for i := 0; i < 10; i++ {
go func() {
once.Do(onceBody)
done <- true
}()
}
for i := 0; i < 10; i++ {
<-done
}
}
```
```None
Output:
Only once
```
Share
Format
Run
#### func (\*Once) [Do](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/onc... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
43b29060-5b01-5e68-b546-9c8c32d0d0dd | docs | golang | golang_sync | go1240 | 19 | Because no call to Do returns until the one call to f returns, if f causes
Do to be called, it will deadlock.
If f panics, Do considers it to have returned; future calls of Do return
without calling f.
#### type [Pool](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/pool.go;l=51) [¶](#Pool "Go to Pool") added ... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
fdd537f3-d40f-54fe-a300-6aaefc6b433b | docs | golang | golang_sync | go1240 | 20 | relieving pressure on the garbage collector. That is, it makes it easy to
build efficient, thread-safe free lists. However, it is not suitable for all
free lists.
An appropriate use of a Pool is to manage a group of temporary items
silently shared among and potentially reused by concurrent independent
clients of a pac... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
b40efe32-f2eb-5399-bc81-5805043d1c51 | docs | golang | golang_sync | go1240 | 21 | a call to [Pool.Get](#Pool.Get) returning that same value x.
Similarly, a call to New returning x “synchronizes before”
a call to Get returning that same value x.
Example [¶](#example-Pool "Go to Example")
```None
package main
import (
"bytes"
"io"
"os"
"sync"
"time"
)
var bufPool = sync.Pool{
New: func() any... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
2e6afaa1-e2c5-5132-8580-656ebd4e120a | docs | golang | golang_sync | go1240 | 22 | Output:
2006-01-02T15:04:05Z path=/search?q=flowers
```
Share
Format
Run
#### func (\*Pool) [Get](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/pool.go;l=131) [¶](#Pool.Get "Go to Pool.Get") added in go1.3
```None
func (p *Pool) Get() any
```
Get selects an arbitrary item from the [Pool](#Pool), removes i... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
dd3d0175-a92d-51e4-9a60-e746495a9de9 | docs | golang | golang_sync | go1240 | 23 | #### type [RWMutex](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/rwmutex.go;l=39) [¶](#RWMutex "Go to RWMutex")
```None
type RWMutex struct {
// contains filtered or unexported fields
}
```
A RWMutex is a reader/writer mutual exclusion lock.
The lock can be held by an arbitrary number of readers or a singl... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
47aa1d2f-58c6-56b4-842a-168175923978 | docs | golang | golang_sync | go1240 | 24 | In the terminology of [the Go memory model](https://go.dev/ref/mem),
the n'th call to [RWMutex.Unlock](#RWMutex.Unlock) “synchronizes before” the m'th call to Lock
for any n < m, just as for [Mutex](#Mutex).
For any call to RLock, there exists an n such that
the n'th call to Unlock “synchronizes before” that call to RL... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
dadc1260-dc35-53f0-a189-5b68598d4b8a | docs | golang | golang_sync | go1240 | 25 | call excludes new readers from acquiring the lock. See the
documentation on the [RWMutex](#RWMutex) type.
#### func (\*RWMutex) [RLocker](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/rwmutex.go;l=240) [¶](#RWMutex.RLocker "Go to RWMutex.RLocker")
```None
func (rw *RWMutex) RLocker() Locker
```
RLocker retu... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
fe8f5161-210b-5991-8ba4-fc90de1840a2 | docs | golang | golang_sync | go1240 | 26 | #### func (\*RWMutex) [TryLock](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/rwmutex.go;l=169) [¶](#RWMutex.TryLock "Go to RWMutex.TryLock") added in go1.18
```None
func (rw *RWMutex) TryLock() bool
```
TryLock tries to lock rw for writing and reports whether it succeeded.
Note that while correct uses of T... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
add78b3c-3b1c-55f6-b3a5-75a6e37eb256 | docs | golang | golang_sync | go1240 | 27 | #### func (\*RWMutex) [Unlock](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/rwmutex.go;l=201) [¶](#RWMutex.Unlock "Go to RWMutex.Unlock")
```None
func (rw *RWMutex) Unlock()
```
Unlock unlocks rw for writing. It is a run-time error if rw is
not locked for writing on entry to Unlock.
As with Mutexes, a lock... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
f03fa72c-d9ca-575c-a057-97414c53a406 | docs | golang | golang_sync | go1240 | 28 | runs and calls [WaitGroup.Done](#WaitGroup.Done) when finished. At the same time,
[WaitGroup.Wait](#WaitGroup.Wait) can be used to block until all goroutines have finished.
A WaitGroup must not be copied after first use.
In the terminology of [the Go memory model](https://go.dev/ref/mem), a call to [WaitGroup.Done](#... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
2e588fd2-df72-5d1b-a401-a35ea86c1bb4 | docs | golang | golang_sync | go1240 | 29 | // Decrement the counter when the goroutine completes.
defer wg.Done()
// Fetch the URL.
http.Get(url)
}(url)
}
// Wait for all HTTP fetches to complete.
wg.Wait()
}
```
Share
Format
Run
#### func (\*WaitGroup) [Add](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/waitgroup.go;l=45) [¶](#WaitG... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
9b8b6e51-a5d3-5dd4-a0c5-f1131ab828e4 | docs | golang | golang_sync | go1240 | 30 | If a WaitGroup is reused to wait for several independent sets of events,
new Add calls must happen after all previous Wait calls have returned.
See the WaitGroup example.
#### func (\*WaitGroup) [Done](https://cs.opensource.google/go/go/+/go1.24.0:src/sync/waitgroup.go;l=88) [¶](#WaitGroup.Done "Go to WaitGroup.Done")... | large_dataset/raw/docs/golang/sync/sync_go1240.md |
3720dd90-bf79-5541-9711-8c0f70650dfe | docs | kubernetes | kubernetes_gateway | v131 | 0 | # Gateway API
Source: https://v1-31.docs.kubernetes.io/docs/concepts/services-networking/gateway/
Version: v1.31
1. [Kubernetes Documentation](https://kubernetes.io/docs/)
2. [Concepts](https://kubernetes.io/docs/concepts/)
3. [Services, Load Balancing, and Networking](https://kubernetes.io/docs/concepts/services-net... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
c08fe091-1bca-59b3-8b92-ee869eb60aeb | docs | kubernetes | kubernetes_gateway | v131 | 1 | mechanism. [Gateway API](https://gateway-api.sigs.k8s.io/) is an [add-on](/docs/concepts/cluster-administration/addons/ "Resources that extend the functionality of Kubernetes.")
containing API [kinds](https://gateway-api.sigs.k8s.io/references/spec/) that provide dynamic infrastructure
provisioning and advanced traffic... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
92155cb9-1a71-532f-97f8-20ffa7e8cea7 | docs | kubernetes | kubernetes_gateway | v131 | 2 | concerned with application-level configuration and [Service](/docs/concepts/services-networking/service/)
composition.
* **Portable:** Gateway API specifications are defined as [custom resources](/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
and are supported by many [implementations](http... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
1fef5006-1e82-5b12-9688-e4cb1da43c17 | docs | kubernetes | kubernetes_gateway | v131 | 3 | ## Resource model
Gateway API has three stable API kinds:
* **GatewayClass:** Defines a set of gateways with common configuration and managed by a controller
that implements the class.
* **Gateway:** Defines an instance of traffic handling infrastructure, such as cloud load balancer.
* **HTTPRoute:** Defines HTTP-s... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
8ede862a-aaee-5f44-9cfa-3ec35d247d6e | docs | kubernetes | kubernetes_gateway | v131 | 4 | that may be attached to its `listeners`, forming a bidirectional trust model with routes.
The following figure illustrates the relationships of the three stable Gateway API kinds:

### Gateway... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
81c44052-d95e-5cbb-b320-bfd1ab4e40c5 | docs | kubernetes | kubernetes_gateway | v131 | 5 | See the [GatewayClass](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1.GatewayClass)
reference for a full definition of this API kind.
### Gateway
A Gateway describes an instance of traffic handling infrastructure. It defines a network endpoint
that can be used for processing traffic, i.... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
62266a3a-f1de-5652-91a3-0f55bf07da47 | docs | kubernetes | kubernetes_gateway | v131 | 6 | to the Gateway by the implementation's controller. This address is used as a network endpoint for
processing traffic of backend network endpoints defined in routes.
See the [Gateway](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1.Gateway)
reference for a full definition of this API kind.... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
273e9cd9-2f3d-52b8-a314-5c1d9b240eb5 | docs | kubernetes | kubernetes_gateway | v131 | 7 | - "www.example.com"
rules:
- matches:
- path:
type: PathPrefix
value: /login
backendRefs:
- name: example-svc
port: 8080
```
In this example, HTTP traffic from Gateway `example-gateway` with the Host: header set to `www.example.com`
and the request path specified as `/login` wil... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
bede56d2-48b9-5f79-8f7a-5e585552a76d | docs | kubernetes | kubernetes_gateway | v131 | 8 | 2. The client's DNS resolver queries for the destination name and learns a mapping to
one or more IP addresses associated with the Gateway.
3. The client sends a request to the Gateway IP address; the reverse proxy receives the HTTP
request and uses the Host: header to match a configuration that was derived from ... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
3bedb377-245d-58fc-a389-75e50d24cefe | docs | kubernetes | kubernetes_gateway | v131 | 9 | understand details such as release channels, support levels, and running conformance tests.
## Migrating from Ingress
Gateway API is the successor to the [Ingress](/docs/concepts/services-networking/ingress/) API.
However, it does not include the Ingress kind. As a result, a one-time conversion from your existing
Ing... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
35492ec9-fd12-5f7b-9209-45a765ac8f17 | docs | kubernetes | kubernetes_gateway | v131 | 10 | follow the installation instructions of your selected implementation. After installing an
implementation, use the [Getting Started](https://gateway-api.sigs.k8s.io/guides/) guide to help
you quickly start working with Gateway API.
#### Note:
Make sure to review the documentation of your selected implementation to und... | large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
94d24132-99e6-5273-a022-ff55d2d53686 | docs | kubernetes | kubernetes_gateway | v131 | 11 | Last modified January 01, 2024 at 9:15 PM PST: [Fix several link errors (8b46ec4047)](https://github.com/kubernetes/website/commit/8b46ec4047d2a928fe608401905d7702acdc3cfd)
| large_dataset/raw/docs/kubernetes/gateway/gateway_v131.md |
836286c7-a10a-53ce-957f-a29b36b67210 | docs | kubernetes | kubernetes_gateway | v132 | 0 | # Gateway API
Source: https://v1-32.docs.kubernetes.io/docs/concepts/services-networking/gateway/
Version: v1.32
1. [Kubernetes Documentation](https://kubernetes.io/docs/)
2. [Concepts](https://kubernetes.io/docs/concepts/)
3. [Services, Load Balancing, and Networking](https://kubernetes.io/docs/concepts/services-net... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
24b795d1-fd35-5b91-99c2-f0182d310f99 | docs | kubernetes | kubernetes_gateway | v132 | 1 | mechanism. [Gateway API](https://gateway-api.sigs.k8s.io/) is an [add-on](/docs/concepts/cluster-administration/addons/ "Resources that extend the functionality of Kubernetes.")
containing API [kinds](https://gateway-api.sigs.k8s.io/references/spec/) that provide dynamic infrastructure
provisioning and advanced traffic... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
cd35dfe2-5bae-56b0-ba3d-7f4c434a5013 | docs | kubernetes | kubernetes_gateway | v132 | 2 | concerned with application-level configuration and [Service](/docs/concepts/services-networking/service/)
composition.
* **Portable:** Gateway API specifications are defined as [custom resources](/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
and are supported by many [implementations](http... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
733afc26-160f-50d2-a3fe-3709fb690cdd | docs | kubernetes | kubernetes_gateway | v132 | 3 | ## Resource model
Gateway API has three stable API kinds:
* **GatewayClass:** Defines a set of gateways with common configuration and managed by a controller
that implements the class.
* **Gateway:** Defines an instance of traffic handling infrastructure, such as cloud load balancer.
* **HTTPRoute:** Defines HTTP-s... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
5a74bb1e-99a7-5714-bb10-eb8715fa612f | docs | kubernetes | kubernetes_gateway | v132 | 4 | that may be attached to its `listeners`, forming a bidirectional trust model with routes.
The following figure illustrates the relationships of the three stable Gateway API kinds:

### Gateway... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
8fc3a623-22eb-56b5-b357-aedba1f4ec05 | docs | kubernetes | kubernetes_gateway | v132 | 5 | See the [GatewayClass](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1.GatewayClass)
reference for a full definition of this API kind.
### Gateway
A Gateway describes an instance of traffic handling infrastructure. It defines a network endpoint
that can be used for processing traffic, i.... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
a81b4a65-59cf-5ab1-9732-8911d82ffe60 | docs | kubernetes | kubernetes_gateway | v132 | 6 | to the Gateway by the implementation's controller. This address is used as a network endpoint for
processing traffic of backend network endpoints defined in routes.
See the [Gateway](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1.Gateway)
reference for a full definition of this API kind.... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
d3da138e-9271-59aa-939f-b421c093613d | docs | kubernetes | kubernetes_gateway | v132 | 7 | - "www.example.com"
rules:
- matches:
- path:
type: PathPrefix
value: /login
backendRefs:
- name: example-svc
port: 8080
```
In this example, HTTP traffic from Gateway `example-gateway` with the Host: header set to `www.example.com`
and the request path specified as `/login` wil... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
35558def-6977-5fb3-ab11-d40d13c8e083 | docs | kubernetes | kubernetes_gateway | v132 | 8 | 2. The client's DNS resolver queries for the destination name and learns a mapping to
one or more IP addresses associated with the Gateway.
3. The client sends a request to the Gateway IP address; the reverse proxy receives the HTTP
request and uses the Host: header to match a configuration that was derived from ... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
590a9c62-6d0d-53ed-967f-4211c373342c | docs | kubernetes | kubernetes_gateway | v132 | 9 | understand details such as release channels, support levels, and running conformance tests.
## Migrating from Ingress
Gateway API is the successor to the [Ingress](/docs/concepts/services-networking/ingress/) API.
However, it does not include the Ingress kind. As a result, a one-time conversion from your existing
Ing... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
eac34881-7bf1-5da6-8d2b-95f21e38e92a | docs | kubernetes | kubernetes_gateway | v132 | 10 | follow the installation instructions of your selected implementation. After installing an
implementation, use the [Getting Started](https://gateway-api.sigs.k8s.io/guides/) guide to help
you quickly start working with Gateway API.
#### Note:
Make sure to review the documentation of your selected implementation to und... | large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
f58260df-e891-5959-973e-504465e40ecc | docs | kubernetes | kubernetes_gateway | v132 | 11 | Last modified January 01, 2024 at 9:15 PM PST: [Fix several link errors (8b46ec4047)](https://github.com/kubernetes/website/commit/8b46ec4047d2a928fe608401905d7702acdc3cfd)
| large_dataset/raw/docs/kubernetes/gateway/gateway_v132.md |
2e4d30ad-6751-5b1f-a691-ffb607eec5c6 | docs | kubernetes | kubernetes_gateway | v133 | 0 | # Gateway API
Source: https://v1-33.docs.kubernetes.io/docs/concepts/services-networking/gateway/
Version: v1.33
1. [Kubernetes Documentation](https://kubernetes.io/docs/)
2. [Concepts](https://kubernetes.io/docs/concepts/)
3. [Services, Load Balancing, and Networking](https://kubernetes.io/docs/concepts/services-net... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
956802ad-a380-5678-a13d-ffa57784c88c | docs | kubernetes | kubernetes_gateway | v133 | 1 | mechanism. [Gateway API](https://gateway-api.sigs.k8s.io/) is an [add-on](/docs/concepts/cluster-administration/addons/ "Resources that extend the functionality of Kubernetes.")
containing API [kinds](https://gateway-api.sigs.k8s.io/references/spec/) that provide dynamic infrastructure
provisioning and advanced traffic... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
184f25d7-9913-57a6-a3cb-7e9deffa7a57 | docs | kubernetes | kubernetes_gateway | v133 | 2 | concerned with application-level configuration and [Service](/docs/concepts/services-networking/service/)
composition.
* **Portable:** Gateway API specifications are defined as [custom resources](/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
and are supported by many [implementations](http... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
315cd6a2-9c11-5d8c-a7b6-d63a7e5cd91c | docs | kubernetes | kubernetes_gateway | v133 | 3 | ## Resource model
Gateway API has three stable API kinds:
* **GatewayClass:** Defines a set of gateways with common configuration and managed by a controller
that implements the class.
* **Gateway:** Defines an instance of traffic handling infrastructure, such as cloud load balancer.
* **HTTPRoute:** Defines HTTP-s... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
901ef8c8-c5df-54c3-b376-a9d0740850cc | docs | kubernetes | kubernetes_gateway | v133 | 4 | that may be attached to its `listeners`, forming a bidirectional trust model with routes.
The following figure illustrates the relationships of the three stable Gateway API kinds:

### Gateway... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
6e5a701e-2ae9-5fb2-bea7-af9f05431e8e | docs | kubernetes | kubernetes_gateway | v133 | 5 | See the [GatewayClass](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1.GatewayClass)
reference for a full definition of this API kind.
### Gateway
A Gateway describes an instance of traffic handling infrastructure. It defines a network endpoint
that can be used for processing traffic, i.... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
fffb8947-020d-5b98-873a-1453ce93f78d | docs | kubernetes | kubernetes_gateway | v133 | 6 | to the Gateway by the implementation's controller. This address is used as a network endpoint for
processing traffic of backend network endpoints defined in routes.
See the [Gateway](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1.Gateway)
reference for a full definition of this API kind.... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
98fc03a7-c68f-5c55-ba93-cb0702afa880 | docs | kubernetes | kubernetes_gateway | v133 | 7 | hostnames:
- "www.example.com"
rules:
- matches:
- path:
type: PathPrefix
value: /login
backendRefs:
- name: example-svc
port: 8080
```
In this example, HTTP traffic from Gateway `example-gateway` with the Host: header set to `www.example.com`
and the request path specified as... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
f3eeea3a-c406-5483-836d-c340a58c6885 | docs | kubernetes | kubernetes_gateway | v133 | 8 | 2. The client's DNS resolver queries for the destination name and learns a mapping to
one or more IP addresses associated with the Gateway.
3. The client sends a request to the Gateway IP address; the reverse proxy receives the HTTP
request and uses the Host: header to match a configuration that was derived from ... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
921bd24f-737f-5ad1-ad6a-239c4779e183 | docs | kubernetes | kubernetes_gateway | v133 | 9 | understand details such as release channels, support levels, and running conformance tests.
## Migrating from Ingress
Gateway API is the successor to the [Ingress](/docs/concepts/services-networking/ingress/) API.
However, it does not include the Ingress kind. As a result, a one-time conversion from your existing
Ing... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
f66862b3-66e2-5040-b783-57226c8b3d80 | docs | kubernetes | kubernetes_gateway | v133 | 10 | follow the installation instructions of your selected implementation. After installing an
implementation, use the [Getting Started](https://gateway-api.sigs.k8s.io/guides/) guide to help
you quickly start working with Gateway API.
#### Note:
Make sure to review the documentation of your selected implementation to und... | large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
afcfc249-adbc-5c52-91e8-8040f02b5c7c | docs | kubernetes | kubernetes_gateway | v133 | 11 | Last modified April 09, 2025 at 5:08 AM PST: [Update docs for deprecation of Endpoints API (#49831) (649bda2cbd)](https://github.com/kubernetes/website/commit/649bda2cbda386043d3e2af07fcb84806243c828)
| large_dataset/raw/docs/kubernetes/gateway/gateway_v133.md |
a32e016b-299f-57d0-b318-8d2bff65e973 | docs | kubernetes | kubernetes_gateway | v134 | 0 | # Gateway API
Source: https://v1-34.docs.kubernetes.io/docs/concepts/services-networking/gateway/
Version: v1.34
1. [Kubernetes Documentation](https://kubernetes.io/docs/)
2. [Concepts](https://kubernetes.io/docs/concepts/)
3. [Services, Load Balancing, and Networking](https://kubernetes.io/docs/concepts/services-net... | large_dataset/raw/docs/kubernetes/gateway/gateway_v134.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.