Versions in this module Expand all Collapse all v1 v1.1.1 Aug 1, 2019 Changes in this version + var ErrClosedSemaphore = errors.New("gtunnel semaphore is closed") + var ErrClosedTunnel = errors.New("gtunnel tunnel is closed") + type Semaphore struct + func NewSemaphore(bufferSize int) *Semaphore + func (sem *Semaphore) Acquire() error + func (sem *Semaphore) Close() + func (sem *Semaphore) Release() + func (sem *Semaphore) Wait() + type Tunnel struct + func NewBuffered(buffer int) *Tunnel + func NewUnbuffered() *Tunnel + func (tun *Tunnel) Close() + func (tun *Tunnel) IsClosed() bool + func (tun *Tunnel) Len() int + func (tun *Tunnel) Out() <-chan interface{} + func (tun *Tunnel) Send(v interface{}) error + func (tun *Tunnel) Wait()