src/coordinator/EndpointPath.bend checks
raw source on the hub · import mylsm-lsm-store@0.6.0.2/src/coordinator/EndpointPath.bend as EndpointPath
2 imports
import Base import ../StorageBytes.bend as StorageBytes
Types
type Decision source · line 5 · raw
Data
Keeps a local socket endpoint within macOS and Linux sockaddr path limits.
Endpoint@path:String -> Decision
PathTooLongDecision
Definitions
def admit_length source · line 10 · raw
@endpoint_bytes:Nat -> Bool
Returns whether one complete endpoint path fits the conservative byte limit.
def endpoint.result source · line 14 · raw
@path:String -> @admitted:Bool -> Decision
Appends the fixed owner endpoint name only when the path remains bounded.
def for_canonical_path source · line 22 · raw
@+canonical_path:String -> Decision
Builds one endpoint from a path already resolved by the filesystem layer.