Extension Protocol Enums (protocol/enums.go)

DeepSeek-Reasonix · internal/ext/extension/protocol/enums.go · go · MIT
integration, chat, tag:protocol, tag:extensions

Defines communication directions for host-to-extension messaging. Use this to standardize event flow and notification types in plugin architectures.

// Source: https://github.com/esengine/DeepSeek-Reasonix | License: MIT | Copyright 2026 Reasonix Contributors
// Provided via justclaw.it.com; keep this notice with the code.
package protocol

import "slices"

type Direction string

const (
	// DirectionHostToExtensionRequest is a Host → Extension request; the
	// extension answers with the registered result DTO.
	DirectionHostToExtensionRequest Direction = "host_to_extension_request"
	// DirectionExtensionToHostRequest is an Extension → Host request; the
	// host answers with the registered result DTO.
	DirectionExtensionToHostRequest Direction = "extension_to_host_request"
	// DirectionHostToExtensionNotification is a fire-and-forget Host →
	// Extension notification.
	DirectionHostToExtensionNotification Direction = "host_to_extension_

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key