protospec

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

README

PSL

PSL — Protocol Specification Language

Define any binary protocol in text, encode and decode automatically.

English | 中文


PSL is a universal binary protocol codec engine for Go. You describe a protocol's structure in a .psl text file — field names, bit widths, byte order, checksums, conditional fields — and the engine handles encoding and decoding automatically. No per-protocol code needed.

Built-in protocols: IPv4, TCP, UDP, ICMP, ARP, DNS, HTTP/1.1, WebSocket. You can define your own the same way.

go build -o psl .

License

GPL-3.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src
abtest
Package abtest provides protocol A/B testing framework.
Package abtest provides protocol A/B testing framework.
aigen
Package aigen provides AI-assisted PSL code generation and review.
Package aigen provides AI-assisted PSL code generation and review.
annotation
Package annotation provides protocol annotation system (@deprecated, @since, etc).
Package annotation provides protocol annotation system (@deprecated, @since, etc).
apidoc
Package apidoc generates API documentation (OpenAPI, AsyncAPI) from message protocols.
Package apidoc generates API documentation (OpenAPI, AsyncAPI) from message protocols.
autocomply
Package autocomply provides automated protocol compliance management.
Package autocomply provides automated protocol compliance management.
benchsuite
Package benchsuite provides standardized protocol performance benchmarking.
Package benchsuite provides standardized protocol performance benchmarking.
certify
Package certify provides protocol compliance certification framework.
Package certify provides protocol compliance certification framework.
chaos
Package chaos provides protocol chaos engineering tools.
Package chaos provides protocol chaos engineering tools.
ci
Package ci provides CI/CD integration tools for PSL projects.
Package ci provides CI/CD integration tools for PSL projects.
cli
cloud
Package cloud provides PSL Cloud API server for protocol-as-a-service.
Package cloud provides PSL Cloud API server for protocol-as-a-service.
compliance
Package compliance provides RFC compliance testing for protocols.
Package compliance provides RFC compliance testing for protocols.
constraint
Package constraint provides PSL constraint language for field relationships.
Package constraint provides PSL constraint language for field relationships.
contract
Package contract provides protocol contract testing.
Package contract provides protocol contract testing.
convert
Package convert provides protocol format conversion between PSL and other formats.
Package convert provides protocol format conversion between PSL and other formats.
coverage
Package coverage provides protocol field coverage analysis.
Package coverage provides protocol field coverage analysis.
crypto
Package crypto provides encryption-related protocol support: TLS deep parsing, encrypted field handling, and authentication protocols.
Package crypto provides encryption-related protocol support: TLS deep parsing, encrypted field handling, and authentication protocols.
datagen
Package datagen generates test data for protocol schemas.
Package datagen generates test data for protocol schemas.
datalake
Package datalake provides protocol data lake integration.
Package datalake provides protocol data lake integration.
debug
Package debug provides interactive protocol debugging with breakpoints.
Package debug provides interactive protocol debugging with breakpoints.
deps
Package deps provides protocol dependency analysis and impact assessment.
Package deps provides protocol dependency analysis and impact assessment.
desktop
Package desktop provides cross-platform desktop application support.
Package desktop provides cross-platform desktop application support.
diffpcap
Package diffpcap provides PCAP file comparison and protocol audit trail.
Package diffpcap provides PCAP file comparison and protocol audit trail.
docsite
Package docsite generates a static documentation website from PSL protocols.
Package docsite generates a static documentation website from PSL protocols.
dpdk
Package dpdk provides DPDK userspace protocol parsing integration.
Package dpdk provides DPDK userspace protocol parsing integration.
ebpf
Package ebpf provides eBPF program generation for protocol parsing.
Package ebpf provides eBPF program generation for protocol parsing.
ecosystem
Package ecosystem provides protocol ecosystem health dashboard.
Package ecosystem provides protocol ecosystem health dashboard.
edu
Package edu provides interactive protocol education platform.
Package edu provides interactive protocol education platform.
etl
Package etl provides protocol data ETL pipeline.
Package etl provides protocol data ETL pipeline.
events
Package events provides protocol event pub/sub and webhook notifications.
Package events provides protocol event pub/sub and webhook notifications.
evolution
Package evolution tracks protocol evolution and deprecation.
Package evolution tracks protocol evolution and deprecation.
fingerprint
Package fingerprint provides protocol fingerprinting and traffic classification.
Package fingerprint provides protocol fingerprinting and traffic classification.
forensics
Package forensics provides network forensics analysis capabilities.
Package forensics provides network forensics analysis capabilities.
formal
Package formal provides formal verification support: TLA+ generation, invariants, model checking.
Package formal provides formal verification support: TLA+ generation, invariants, model checking.
formatter
Package formatter provides PSL code formatting.
Package formatter provides PSL code formatting.
fsm
Package fsm provides protocol state machine extraction and visualization.
Package fsm provides protocol state machine extraction and visualization.
gateway
Package gateway provides a protocol-aware API gateway.
Package gateway provides a protocol-aware API gateway.
graphql
Package graphql provides GraphQL schema generation from message protocols.
Package graphql provides GraphQL schema generation from message protocols.
grpcgen
Package grpcgen generates gRPC .proto files from message protocols.
Package grpcgen generates gRPC .proto files from message protocols.
hotload
Package hotload provides runtime protocol hot-loading and dynamic registration.
Package hotload provides runtime protocol hot-loading and dynamic registration.
i18n
i18n checker — validates translation completeness across protocols.
i18n checker — validates translation completeness across protocols.
identify
Package identify provides automatic protocol identification from binary data.
Package identify provides automatic protocol identification from binary data.
infer
Package infer provides protocol reverse engineering — automatic structure inference from binary data.
Package infer provides protocol reverse engineering — automatic structure inference from binary data.
knowledge
Package knowledge provides protocol knowledge graph.
Package knowledge provides protocol knowledge graph.
langspec
Package langspec provides PSL 3.0 language specification and EBNF grammar.
Package langspec provides PSL 3.0 language specification and EBNF grammar.
lint
Package lint provides PSL code style checking.
Package lint provides PSL code style checking.
lsp
PSL LSP completion provider — enhanced code completion for PSL files.
PSL LSP completion provider — enhanced code completion for PSL files.
mesh
Package mesh provides Service Mesh protocol integration.
Package mesh provides Service Mesh protocol integration.
metrics
Package metrics provides protocol metrics collection and export.
Package metrics provides protocol metrics collection and export.
migrate
Package migrate provides protocol version migration tools.
Package migrate provides protocol version migration tools.
mobile
Package mobile provides mobile platform protocol analysis support.
Package mobile provides mobile platform protocol analysis support.
monitor
Package monitor provides real-time protocol traffic monitoring and alerting.
Package monitor provides real-time protocol traffic monitoring and alerting.
netlab
Package netlab provides virtual network simulation for protocol testing.
Package netlab provides virtual network simulation for protocol testing.
notebook
Package notebook provides Jupyter notebook integration for PSL.
Package notebook provides Jupyter notebook integration for PSL.
optimize
Package optimize provides protocol design analysis and optimization suggestions.
Package optimize provides protocol design analysis and optimization suggestions.
p4gen
Package p4gen provides P4 programmable switch code generation.
Package p4gen provides P4 programmable switch code generation.
pdl
pipe
Package pipe provides protocol processing pipelines.
Package pipe provides protocol processing pipelines.
pkg
Package pkg provides protocol package management.
Package pkg provides protocol package management.
playground
Package playground provides a web-based PSL playground with WASM support.
Package playground provides a web-based PSL playground with WASM support.
plugin
Package plugin manages PSL protocol packages (install, load, publish).
Package plugin manages PSL protocol packages (install, load, publish).
pqcrypto
Package pqcrypto provides post-quantum cryptography protocol analysis.
Package pqcrypto provides post-quantum cryptography protocol analysis.
profile
Package profile provides protocol encoding/decoding performance profiling.
Package profile provides protocol encoding/decoding performance profiling.
project
Package project provides PSL project management (init, config, git hooks).
Package project provides PSL project management (init, config, git hooks).
psl4
Package psl4 provides PSL 4.0 language features: dependent types, effects, macros, type inference.
Package psl4 provides PSL 4.0 language features: dependent types, effects, macros, type inference.
repl
Package repl provides an interactive protocol shell.
Package repl provides an interactive protocol shell.
sandbox
Package sandbox provides isolated execution environment for protocol decoding.
Package sandbox provides isolated execution environment for protocol decoding.
scanner
Package scanner provides protocol security scanning and vulnerability detection.
Package scanner provides protocol security scanning and vulnerability detection.
sdk
Package sdk provides the multi-language SDK export layer.
Package sdk provides the multi-language SDK export layer.
search
Package search provides protocol documentation search engine.
Package search provides protocol documentation search engine.
sequence
Package sequence generates protocol sequence diagrams from packet captures.
Package sequence generates protocol sequence diagrams from packet captures.
simulate
Package simulate provides protocol simulation: mock servers, replay, and load testing.
Package simulate provides protocol simulation: mock servers, replay, and load testing.
snapshot
Package snapshot provides protocol library snapshot and session recording.
Package snapshot provides protocol library snapshot and session recording.
stack
Package stack provides multi-layer protocol stack decoding engine.
Package stack provides multi-layer protocol stack decoding engine.
standards
Package standards provides international protocol standard integration.
Package standards provides international protocol standard integration.
stream
Package stream provides streaming protocol decoding from io.Reader.
Package stream provides streaming protocol decoding from io.Reader.
template
Package template provides protocol template system for rapid protocol creation.
Package template provides protocol template system for rapid protocol creation.
tenant
Package tenant provides multi-tenant protocol library isolation.
Package tenant provides multi-tenant protocol library isolation.
testgen
Package testgen generates test cases for protocol schemas.
Package testgen generates test cases for protocol schemas.
topology
Package topology provides network topology discovery from packet captures.
Package topology provides network topology discovery from packet captures.
twin
Package twin provides network protocol digital twin modeling.
Package twin provides network protocol digital twin modeling.
vdiff
Package vdiff provides visual protocol diff tools.
Package vdiff provides visual protocol diff tools.
versioning
Package versioning provides protocol version management and changelog generation.
Package versioning provides protocol version management and changelog generation.
visual
Package visual provides enhanced protocol visualization: PNG diagrams, interactive views.
Package visual provides enhanced protocol visualization: PNG diagrams, interactive views.
wasmrt
Package wasmrt provides WASM runtime configuration for PSL engine.
Package wasmrt provides WASM runtime configuration for PSL engine.

Jump to

Keyboard shortcuts

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