mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
Go side: - Log hooks returned by Implemented() - Log each hook name -> ID mapping - Log OnActivate implementation status - Log OnActivate call flow Python side: - Log Implemented() return value - Log OnActivate gRPC receipt and handler invocation This is temporary debug logging to diagnose why OnActivate isn't being called for Python plugins. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
3.1 KiB
Python
46 lines
3.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: hooks_http.proto
|
|
# Protobuf Python Version: 6.31.1
|
|
"""Generated protocol buffer code."""
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
from google.protobuf import runtime_version as _runtime_version
|
|
from google.protobuf import symbol_database as _symbol_database
|
|
from google.protobuf.internal import builder as _builder
|
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
_runtime_version.Domain.PUBLIC,
|
|
6,
|
|
31,
|
|
1,
|
|
'',
|
|
'hooks_http.proto'
|
|
)
|
|
# @@protoc_insertion_point(imports)
|
|
|
|
_sym_db = _symbol_database.Default()
|
|
|
|
|
|
from . import hooks_common_pb2 as hooks__common__pb2
|
|
|
|
|
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10hooks_http.proto\x12\x17mattermost.pluginapi.v1\x1a\x12hooks_common.proto\")\n\nHTTPHeader\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0e\n\x06values\x18\x02 \x03(\t\"z\n\x10ServeHTTPRequest\x12;\n\x04init\x18\x01 \x01(\x0b\x32-.mattermost.pluginapi.v1.ServeHTTPRequestInit\x12\x12\n\nbody_chunk\x18\x02 \x01(\x0c\x12\x15\n\rbody_complete\x18\x03 \x01(\x08\"\xb2\x02\n\x14ServeHTTPRequestInit\x12>\n\x0eplugin_context\x18\x01 \x01(\x0b\x32&.mattermost.pluginapi.v1.PluginContext\x12\x0e\n\x06method\x18\x02 \x01(\t\x12\x0b\n\x03url\x18\x03 \x01(\t\x12\r\n\x05proto\x18\x04 \x01(\t\x12\x13\n\x0bproto_major\x18\x05 \x01(\x05\x12\x13\n\x0bproto_minor\x18\x06 \x01(\x05\x12\x34\n\x07headers\x18\x07 \x03(\x0b\x32#.mattermost.pluginapi.v1.HTTPHeader\x12\x0c\n\x04host\x18\x08 \x01(\t\x12\x13\n\x0bremote_addr\x18\t \x01(\t\x12\x13\n\x0brequest_uri\x18\n \x01(\t\x12\x16\n\x0e\x63ontent_length\x18\x0b \x01(\x03\"\x8b\x01\n\x11ServeHTTPResponse\x12<\n\x04init\x18\x01 \x01(\x0b\x32..mattermost.pluginapi.v1.ServeHTTPResponseInit\x12\x12\n\nbody_chunk\x18\x02 \x01(\x0c\x12\x15\n\rbody_complete\x18\x03 \x01(\x08\x12\r\n\x05\x66lush\x18\x04 \x01(\x08\"b\n\x15ServeHTTPResponseInit\x12\x13\n\x0bstatus_code\x18\x01 \x01(\x05\x12\x34\n\x07headers\x18\x02 \x03(\x0b\x32#.mattermost.pluginapi.v1.HTTPHeaderBXZVgithub.com/mattermost/mattermost/server/public/pluginapi/grpc/generated/go/pluginapiv1b\x06proto3')
|
|
|
|
_globals = globals()
|
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hooks_http_pb2', _globals)
|
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
_globals['DESCRIPTOR']._serialized_options = b'ZVgithub.com/mattermost/mattermost/server/public/pluginapi/grpc/generated/go/pluginapiv1'
|
|
_globals['_HTTPHEADER']._serialized_start=65
|
|
_globals['_HTTPHEADER']._serialized_end=106
|
|
_globals['_SERVEHTTPREQUEST']._serialized_start=108
|
|
_globals['_SERVEHTTPREQUEST']._serialized_end=230
|
|
_globals['_SERVEHTTPREQUESTINIT']._serialized_start=233
|
|
_globals['_SERVEHTTPREQUESTINIT']._serialized_end=539
|
|
_globals['_SERVEHTTPRESPONSE']._serialized_start=542
|
|
_globals['_SERVEHTTPRESPONSE']._serialized_end=681
|
|
_globals['_SERVEHTTPRESPONSEINIT']._serialized_start=683
|
|
_globals['_SERVEHTTPRESPONSEINIT']._serialized_end=781
|
|
# @@protoc_insertion_point(module_scope)
|