Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Atsika/aznet
/ functions
Functions
206 in github.com/Atsika/aznet
⨍
Functions
206
◇
Types & classes
31
↓ 13 callers
Method
Close
Close terminates the transport.
aznet.go:52
↓ 11 callers
Method
ServiceURL
ServiceURL returns the base URL for the Azure Storage service.
endpoint.go:109
↓ 11 callers
Method
String
()
aznet.go:78
↓ 8 callers
Method
JoinURL
JoinURL joins the base service URL with a resource name and optional SAS token.
endpoint.go:117
↓ 6 callers
Method
RemoteAddr
RemoteAddr returns the remote network address.
aznet.go:56
↓ 5 callers
Function
BuildFrame
BuildFrame writes a framed message to the write buffer. Frame format: [4 bytes: length][1 byte: type][N bytes: payload] Caller must ensure writeBuf is
frame.go:20
↓ 5 callers
Method
IncrementDeleteTransaction
()
metrics.go:15
↓ 5 callers
Method
flush
()
aznet.go:604
↓ 4 callers
Method
IncrementWriteTransaction
()
metrics.go:12
↓ 4 callers
Method
Reset
Reset moves the current interval back to the fast value.
poll.go:41
↓ 4 callers
Method
Sleep
Sleep waits for the current interval and then backs off exponentially up to Steady.
poll.go:26
↓ 4 callers
Method
Write
(p []byte)
aznet.go:484
↓ 4 callers
Method
makeSAS
(name string, permissions aztables.SASPermissions)
aztable.go:164
↓ 4 callers
Method
makeSAS
(name string, permissions sas.QueuePermissions)
azqueue.go:147
↓ 3 callers
Method
ConnectionString
ConnectionString returns the connection string for this listener.
aznet.go:744
↓ 3 callers
Method
DeleteToken
(ctx context.Context, connID string)
aznet.go:90
↓ 3 callers
Method
IncrementBytesSent
(n int64)
metrics.go:16
↓ 3 callers
Method
IncrementReadTransaction
()
metrics.go:13
↓ 3 callers
Function
Listen
Listen is analogous to net.Listen. It takes a network type (e.g. "azblob") and an address (e.g. "account.blob.core.windows.net").
aznet.go:191
↓ 3 callers
Method
LocalAddr
LocalAddr returns the local network address.
aznet.go:54
↓ 3 callers
Method
NewTransport
NewTransport creates a data transporter for an established session.
aznet.go:97
↓ 3 callers
Method
ParseSAS
ParseSAS parses the handshake and token SAS tokens from the URL query. It returns the decoded SAS strings (without leading '?').
endpoint.go:22
↓ 3 callers
Function
RegisterFactory
RegisterFactory registers a factory for the given scheme (e.g., "azblob").
aznet.go:137
↓ 3 callers
Method
SASTimes
SASTimes returns the start and end times for a SAS token based on config.
options.go:109
↓ 3 callers
Method
WriteRaw
WriteRaw sends raw bytes to the peer.
aznet.go:48
↓ 3 callers
Function
buildTableEntity
(pk, rk string, data []byte)
aztable.go:35
↓ 3 callers
Function
extractTableData
(raw []byte)
aztable.go:45
↓ 3 callers
Function
formatRowKey
(seq int)
aztable.go:313
↓ 3 callers
Method
makeSAS
(name string, permissions sas.ContainerPermissions)
azblob.go:166
↓ 2 callers
Method
Accept
()
aznet.go:669
↓ 2 callers
Method
CleanupBootstrap
CleanupBootstrap removes shared bootstrap resources (handshake/token endpoints).
aznet.go:100
↓ 2 callers
Method
CleanupSession
CleanupSession removes per-connection resources (req/res channels).
aznet.go:102
↓ 2 callers
Method
CreateSession
Session lifecycle
aznet.go:93
↓ 2 callers
Method
DeleteHandshake
(ctx context.Context, id string)
aznet.go:85
↓ 2 callers
Function
Dial
Dial is analogous to net.Dial. It takes a network type (e.g. "azblob") and an address (e.g. "https://account.blob.core.windows.net/?handshake=...").
aznet.go:211
↓ 2 callers
Method
GetBytesReceived
()
metrics.go:24
↓ 2 callers
Method
GetBytesSent
()
metrics.go:23
↓ 2 callers
Method
GetDeleteTransactionCount
()
metrics.go:22
↓ 2 callers
Method
GetHandshakes
(ctx context.Context)
aznet.go:84
↓ 2 callers
Method
GetListTransactionCount
()
metrics.go:21
↓ 2 callers
Function
GetMetrics
GetMetrics returns the metrics from a connection if it supports metrics tracking. It returns nil if the connection doesn't support metrics.
metrics.go:64
↓ 2 callers
Method
GetReadTransactionCount
()
metrics.go:20
↓ 2 callers
Method
GetToken
(ctx context.Context, connID string)
aznet.go:89
↓ 2 callers
Method
GetWriteTransactionCount
()
metrics.go:19
↓ 2 callers
Method
IncrementBytesReceived
(n int64)
metrics.go:17
↓ 2 callers
Method
IsComplete
IsComplete returns true if the handshake is complete and session keys are established.
crypto.go:102
↓ 2 callers
Method
MTU
MTU returns the maximum number of application bytes that can fit in a single transport frame for the current connection.
aznet.go:571
↓ 2 callers
Method
MaxRawSize
MaxRawSize returns the maximum raw capacity of the transport in bytes.
aznet.go:58
↓ 2 callers
Method
PostHandshake
Handshake operations
aznet.go:83
↓ 2 callers
Method
PostToken
Token exchange operations
aznet.go:88
↓ 2 callers
Method
ReadMessage
ReadMessage processes a handshake message from the peer, decrypting the payload. It returns the decrypted payload.
crypto.go:88
↓ 2 callers
Method
ReadRaw
ReadRaw attempts to read raw bytes from the peer.
aznet.go:50
↓ 2 callers
Method
RotateRX
()
aznet.go:67
↓ 2 callers
Method
RotateTX
(ctx context.Context)
aznet.go:66
↓ 2 callers
Method
SealData
SealData encrypts plaintext and prepends a 4-byte big-endian length. It uses the provided dst buffer if it has enough capacity.
crypto.go:138
↓ 2 callers
Method
ShouldRotate
()
aznet.go:65
↓ 2 callers
Method
WriteMessage
WriteMessage creates the next handshake message, encrypting the payload. It returns the message to send to the peer.
crypto.go:73
↓ 2 callers
Function
initialize
(network, address string, opts []Option)
aznet.go:164
↓ 2 callers
Function
newConn
(ctx context.Context, cancel context.CancelFunc, t Transport, cfg *Config, noise *Noise, driver Driver, connID
aznet.go:333
↓ 2 callers
Function
resolveContainerClient
(client *service.Client, ep *Endpoint, name, sasToken string)
azblob.go:77
↓ 2 callers
Function
resolveQueueClient
(client *azqueue.ServiceClient, ep *Endpoint, name, sasToken string)
azqueue.go:67
↓ 2 callers
Function
resolveTableClient
(client *aztables.ServiceClient, ep *Endpoint, name, sasToken string)
aztable.go:96
↓ 1 callers
Method
BuildConnURL
BuildConnURL constructs the final aznet connection URL with base64 encoded SAS tokens.
endpoint.go:87
↓ 1 callers
Method
CreateBootstrapTokens
()
aznet.go:94
↓ 1 callers
Method
DecryptData
DecryptData decrypts application data using the established session cipher.
crypto.go:129
↓ 1 callers
Method
EncryptData
EncryptData encrypts application data using the established session cipher.
crypto.go:121
↓ 1 callers
Method
GetMetrics
()
metrics.go:65
↓ 1 callers
Method
IncrementListTransaction
()
metrics.go:14
↓ 1 callers
Method
IsInitiator
IsInitiator returns true if the handshake is the initiator.
crypto.go:107
↓ 1 callers
Function
NewAdaptivePoll
NewAdaptivePoll builds a poller initialized to the fast interval.
poll.go:15
↓ 1 callers
Function
NewDefaultMetrics
NewDefaultMetrics creates a new DefaultMetrics instance.
metrics.go:38
↓ 1 callers
Method
NewDriver
NewDriver creates a Driver for the given endpoint and config.
aznet.go:108
↓ 1 callers
Function
NewEndpoint
NewEndpoint creates a new Endpoint from a URL.
endpoint.go:48
↓ 1 callers
Function
NewNoiseClient
NewNoiseClient creates a new Noise Protocol handshake as the initiator (client). It uses the NN pattern (no static keys, anonymous connection).
crypto.go:45
↓ 1 callers
Function
NewNoiseServer
NewNoiseServer creates a new Noise Protocol handshake as the responder (server). It uses the NN pattern (no static keys, anonymous connection).
crypto.go:59
↓ 1 callers
Method
Read
(p []byte)
aznet.go:361
↓ 1 callers
Method
UnsealData
UnsealData attempts to extract and decrypt a Noise chunk from data. It returns the decrypted plaintext into dst, the remaining data, and an error.
crypto.go:157
↓ 1 callers
Method
Validate
Validate checks if the configuration is sane and valid.
options.go:68
↓ 1 callers
Function
WithEndpoints
WithEndpoints allows overriding the default handshake and token endpoints used during the connection bootstrap phase.
options.go:116
↓ 1 callers
Function
WithSASExpiry
WithSASExpiry sets the validity time for SAS tokens. The token cannot be revoked once generated, so be careful and don't set it too long.
options.go:142
↓ 1 callers
Function
applyConfig
applyConfig builds a runtime config by applying the given options on top of defaults.
options.go:100
↓ 1 callers
Function
defaultConfig
defaultConfig returns config with library defaults.
options.go:79
↓ 1 callers
Method
janitor
()
aznet.go:773
↓ 1 callers
Method
keepAlive
keepAlive sends periodic Ping frames when the local side is idle. lastActive tracks the time of the most recent flush (local send). peerLastSeen (upda
aznet.go:581
↓ 1 callers
Function
lookupFactory
(scheme string)
aznet.go:159
↓ 1 callers
Function
newBlobClient
(ep *Endpoint)
azblob.go:341
↓ 1 callers
Function
newMetricsTransport
(t Transport, m Metrics)
aznet.go:811
↓ 1 callers
Function
newQueueClient
(ep *Endpoint)
azqueue.go:281
↓ 1 callers
Function
newTableClient
(ep *Endpoint)
aztable.go:322
Method
Addr
()
aznet.go:769
Method
CleanupBootstrap
(ctx context.Context)
azblob.go:236
Method
CleanupBootstrap
(ctx context.Context)
aztable.go:233
Method
CleanupBootstrap
(ctx context.Context)
metrics.go:145
Method
CleanupBootstrap
(ctx context.Context)
azqueue.go:214
Method
CleanupSession
(ctx context.Context, connID string)
azblob.go:245
Method
CleanupSession
(ctx context.Context, connID string)
aztable.go:242
Method
CleanupSession
(ctx context.Context, connID string)
metrics.go:154
Method
CleanupSession
(ctx context.Context, connID string)
azqueue.go:223
Method
Close
()
azblob.go:299
Method
Close
()
aztable.go:304
next →
1–100 of 206, ranked by callers