proxyclient

package
v0.0.0-...-ee113ab Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*client, error)

New create new WireGuard client which serves requests via proxy.

Types

type BufferPool

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

BufferPool represent a buffer sync pool

func NewBufferPool

func NewBufferPool(size int) (pool *BufferPool)

NewBufferPool create a new buffer pool of slice with some length and capacity

func (*BufferPool) Get

func (pool *BufferPool) Get() (buffer []byte)

Get return some buffer from pool or create new one

func (*BufferPool) Put

func (pool *BufferPool) Put(buffer []byte)

Put get some buffer and place back it to pool

Jump to

Keyboard shortcuts

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