MCPcopy Create free account

hub / github.com/Atsika/aznet / functions

Functions206 in github.com/Atsika/aznet

↓ 13 callersMethodClose
Close terminates the transport.
aznet.go:52
↓ 11 callersMethodServiceURL
ServiceURL returns the base URL for the Azure Storage service.
endpoint.go:109
↓ 11 callersMethodString
()
aznet.go:78
↓ 8 callersMethodJoinURL
JoinURL joins the base service URL with a resource name and optional SAS token.
endpoint.go:117
↓ 6 callersMethodRemoteAddr
RemoteAddr returns the remote network address.
aznet.go:56
↓ 5 callersFunctionBuildFrame
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 callersMethodIncrementDeleteTransaction
()
metrics.go:15
↓ 5 callersMethodflush
()
aznet.go:604
↓ 4 callersMethodIncrementWriteTransaction
()
metrics.go:12
↓ 4 callersMethodReset
Reset moves the current interval back to the fast value.
poll.go:41
↓ 4 callersMethodSleep
Sleep waits for the current interval and then backs off exponentially up to Steady.
poll.go:26
↓ 4 callersMethodWrite
(p []byte)
aznet.go:484
↓ 4 callersMethodmakeSAS
(name string, permissions aztables.SASPermissions)
aztable.go:164
↓ 4 callersMethodmakeSAS
(name string, permissions sas.QueuePermissions)
azqueue.go:147
↓ 3 callersMethodConnectionString
ConnectionString returns the connection string for this listener.
aznet.go:744
↓ 3 callersMethodDeleteToken
(ctx context.Context, connID string)
aznet.go:90
↓ 3 callersMethodIncrementBytesSent
(n int64)
metrics.go:16
↓ 3 callersMethodIncrementReadTransaction
()
metrics.go:13
↓ 3 callersFunctionListen
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 callersMethodLocalAddr
LocalAddr returns the local network address.
aznet.go:54
↓ 3 callersMethodNewTransport
NewTransport creates a data transporter for an established session.
aznet.go:97
↓ 3 callersMethodParseSAS
ParseSAS parses the handshake and token SAS tokens from the URL query. It returns the decoded SAS strings (without leading '?').
endpoint.go:22
↓ 3 callersFunctionRegisterFactory
RegisterFactory registers a factory for the given scheme (e.g., "azblob").
aznet.go:137
↓ 3 callersMethodSASTimes
SASTimes returns the start and end times for a SAS token based on config.
options.go:109
↓ 3 callersMethodWriteRaw
WriteRaw sends raw bytes to the peer.
aznet.go:48
↓ 3 callersFunctionbuildTableEntity
(pk, rk string, data []byte)
aztable.go:35
↓ 3 callersFunctionextractTableData
(raw []byte)
aztable.go:45
↓ 3 callersFunctionformatRowKey
(seq int)
aztable.go:313
↓ 3 callersMethodmakeSAS
(name string, permissions sas.ContainerPermissions)
azblob.go:166
↓ 2 callersMethodAccept
()
aznet.go:669
↓ 2 callersMethodCleanupBootstrap
CleanupBootstrap removes shared bootstrap resources (handshake/token endpoints).
aznet.go:100
↓ 2 callersMethodCleanupSession
CleanupSession removes per-connection resources (req/res channels).
aznet.go:102
↓ 2 callersMethodCreateSession
Session lifecycle
aznet.go:93
↓ 2 callersMethodDeleteHandshake
(ctx context.Context, id string)
aznet.go:85
↓ 2 callersFunctionDial
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 callersMethodGetBytesReceived
()
metrics.go:24
↓ 2 callersMethodGetBytesSent
()
metrics.go:23
↓ 2 callersMethodGetDeleteTransactionCount
()
metrics.go:22
↓ 2 callersMethodGetHandshakes
(ctx context.Context)
aznet.go:84
↓ 2 callersMethodGetListTransactionCount
()
metrics.go:21
↓ 2 callersFunctionGetMetrics
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 callersMethodGetReadTransactionCount
()
metrics.go:20
↓ 2 callersMethodGetToken
(ctx context.Context, connID string)
aznet.go:89
↓ 2 callersMethodGetWriteTransactionCount
()
metrics.go:19
↓ 2 callersMethodIncrementBytesReceived
(n int64)
metrics.go:17
↓ 2 callersMethodIsComplete
IsComplete returns true if the handshake is complete and session keys are established.
crypto.go:102
↓ 2 callersMethodMTU
MTU returns the maximum number of application bytes that can fit in a single transport frame for the current connection.
aznet.go:571
↓ 2 callersMethodMaxRawSize
MaxRawSize returns the maximum raw capacity of the transport in bytes.
aznet.go:58
↓ 2 callersMethodPostHandshake
Handshake operations
aznet.go:83
↓ 2 callersMethodPostToken
Token exchange operations
aznet.go:88
↓ 2 callersMethodReadMessage
ReadMessage processes a handshake message from the peer, decrypting the payload. It returns the decrypted payload.
crypto.go:88
↓ 2 callersMethodReadRaw
ReadRaw attempts to read raw bytes from the peer.
aznet.go:50
↓ 2 callersMethodRotateRX
()
aznet.go:67
↓ 2 callersMethodRotateTX
(ctx context.Context)
aznet.go:66
↓ 2 callersMethodSealData
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 callersMethodShouldRotate
()
aznet.go:65
↓ 2 callersMethodWriteMessage
WriteMessage creates the next handshake message, encrypting the payload. It returns the message to send to the peer.
crypto.go:73
↓ 2 callersFunctioninitialize
(network, address string, opts []Option)
aznet.go:164
↓ 2 callersFunctionnewConn
(ctx context.Context, cancel context.CancelFunc, t Transport, cfg *Config, noise *Noise, driver Driver, connID
aznet.go:333
↓ 2 callersFunctionresolveContainerClient
(client *service.Client, ep *Endpoint, name, sasToken string)
azblob.go:77
↓ 2 callersFunctionresolveQueueClient
(client *azqueue.ServiceClient, ep *Endpoint, name, sasToken string)
azqueue.go:67
↓ 2 callersFunctionresolveTableClient
(client *aztables.ServiceClient, ep *Endpoint, name, sasToken string)
aztable.go:96
↓ 1 callersMethodBuildConnURL
BuildConnURL constructs the final aznet connection URL with base64 encoded SAS tokens.
endpoint.go:87
↓ 1 callersMethodCreateBootstrapTokens
()
aznet.go:94
↓ 1 callersMethodDecryptData
DecryptData decrypts application data using the established session cipher.
crypto.go:129
↓ 1 callersMethodEncryptData
EncryptData encrypts application data using the established session cipher.
crypto.go:121
↓ 1 callersMethodGetMetrics
()
metrics.go:65
↓ 1 callersMethodIncrementListTransaction
()
metrics.go:14
↓ 1 callersMethodIsInitiator
IsInitiator returns true if the handshake is the initiator.
crypto.go:107
↓ 1 callersFunctionNewAdaptivePoll
NewAdaptivePoll builds a poller initialized to the fast interval.
poll.go:15
↓ 1 callersFunctionNewDefaultMetrics
NewDefaultMetrics creates a new DefaultMetrics instance.
metrics.go:38
↓ 1 callersMethodNewDriver
NewDriver creates a Driver for the given endpoint and config.
aznet.go:108
↓ 1 callersFunctionNewEndpoint
NewEndpoint creates a new Endpoint from a URL.
endpoint.go:48
↓ 1 callersFunctionNewNoiseClient
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 callersFunctionNewNoiseServer
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 callersMethodRead
(p []byte)
aznet.go:361
↓ 1 callersMethodUnsealData
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 callersMethodValidate
Validate checks if the configuration is sane and valid.
options.go:68
↓ 1 callersFunctionWithEndpoints
WithEndpoints allows overriding the default handshake and token endpoints used during the connection bootstrap phase.
options.go:116
↓ 1 callersFunctionWithSASExpiry
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 callersFunctionapplyConfig
applyConfig builds a runtime config by applying the given options on top of defaults.
options.go:100
↓ 1 callersFunctiondefaultConfig
defaultConfig returns config with library defaults.
options.go:79
↓ 1 callersMethodjanitor
()
aznet.go:773
↓ 1 callersMethodkeepAlive
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 callersFunctionlookupFactory
(scheme string)
aznet.go:159
↓ 1 callersFunctionnewBlobClient
(ep *Endpoint)
azblob.go:341
↓ 1 callersFunctionnewMetricsTransport
(t Transport, m Metrics)
aznet.go:811
↓ 1 callersFunctionnewQueueClient
(ep *Endpoint)
azqueue.go:281
↓ 1 callersFunctionnewTableClient
(ep *Endpoint)
aztable.go:322
MethodAddr
()
aznet.go:769
MethodCleanupBootstrap
(ctx context.Context)
azblob.go:236
MethodCleanupBootstrap
(ctx context.Context)
aztable.go:233
MethodCleanupBootstrap
(ctx context.Context)
metrics.go:145
MethodCleanupBootstrap
(ctx context.Context)
azqueue.go:214
MethodCleanupSession
(ctx context.Context, connID string)
azblob.go:245
MethodCleanupSession
(ctx context.Context, connID string)
aztable.go:242
MethodCleanupSession
(ctx context.Context, connID string)
metrics.go:154
MethodCleanupSession
(ctx context.Context, connID string)
azqueue.go:223
MethodClose
()
azblob.go:299
MethodClose
()
aztable.go:304
next →1–100 of 206, ranked by callers