How whiplashscorpion/ari works
Project type and purpose
• It provides commands, event parsing, and a pluggable module system to build higher-level apps on top of Asterisk.
File structure
• Top-level Go files represent logical layers or components:
• config_objects.go – definitions for configuration structures (connection parameters, authentication).
• endpoints.go – networking details (how to open/maintain the AMI/TCP connection).
• command_structs.go / command_client.go – data models for commands and the client API to send commands.
• event_structs.go – data models for events returned by Asterisk.
• modules.go – plug-in hooks or module registration.
• applications.go, bridges.go, channels.go, playbacks.go – high-level abstractions for specific AMI subjects.
• logging.go – centralized logging facility.
• go.mod declares dependencies.
• No HTTP/server code or UI, so it’s a pure library/tool.
README (empty)
• No extra hints. Proceed from naming conventions and Go idioms.
• Major design patterns: “Plugin registration”, “Layered parsing → dispatch”.