Compare commits
	
		
			29 Commits
		
	
	
		
			v0.1.1
			...
			4933e04e6a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 4933e04e6a | |||
| de7a11684b | |||
| b792c4cb55 | |||
| 3f93896f52 | |||
| 6c1f325b8c | |||
| e7f11d7d33 | |||
| f0349e9fa5 | |||
| 1a72ff3802 | |||
| 1759f91cd1 | |||
| b9d6dea90b | |||
| db062baab2 | |||
| c1c296a0c0 | |||
| 378df897b2 | |||
| 178eb3c308 | |||
| 97c50966f1 | |||
| 8fc97ec058 | |||
| 0e5e6a380a | |||
| 728d776079 | |||
| 7930264f50 | |||
| 2df11596a8 | |||
| 4e66a97391 | |||
| 0609f1c857 | |||
| e15c0984df | |||
| 55497b9d2a | |||
| d875bbb2f7 | |||
| b1102825fe | |||
| 0b1826951e | |||
| f080034fa4 | |||
| 2de398032c | 
							
								
								
									
										80
									
								
								.air.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								.air.toml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,80 @@
 | 
				
			|||||||
 | 
					# .air.toml
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# A configuration file for the 'air' live-reloading tool.
 | 
				
			||||||
 | 
					# This configuration is tailored for a Go project that needs to be run with specific command-line flags
 | 
				
			||||||
 | 
					# and requires graceful handling of system signals like SIGINT and SIGTERM.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# To use:
 | 
				
			||||||
 | 
					# 1. Install air: `go install github.com/cosmtrek/air@latest`
 | 
				
			||||||
 | 
					# 2. Place this file, renamed to `.air.toml`, in the root of your project.
 | 
				
			||||||
 | 
					# 3. Run `air` from your terminal in the project root.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# The root directory of your project to watch for changes.
 | 
				
			||||||
 | 
					# '.' indicates the current directory where air is run.
 | 
				
			||||||
 | 
					root = "."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# A temporary directory for air to store its build artifacts.
 | 
				
			||||||
 | 
					# You should add this directory to your .gitignore file.
 | 
				
			||||||
 | 
					tmp_dir = "tmp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[build]
 | 
				
			||||||
 | 
					# Step 1: Build the Go binary and place it in the tmp directory.
 | 
				
			||||||
 | 
					# Step 2: Copy the configuration file into the tmp directory as well.
 | 
				
			||||||
 | 
					# This ensures all runtime assets are in one place.
 | 
				
			||||||
 | 
					cmd = "go build -o ./tmp/main . && cp config.yaml ./tmp/"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# The 'full_bin' command gives us complete control over how the app is run.
 | 
				
			||||||
 | 
					# We first change the directory to 'tmp' so that the application's working
 | 
				
			||||||
 | 
					# directory is where the binary and its config file are located.
 | 
				
			||||||
 | 
					# Then, we execute the binary, pointing it to the config file in the same directory.
 | 
				
			||||||
 | 
					full_bin = "cd ./tmp && ./main -config config.yaml"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# A list of directories to watch for file changes.
 | 
				
			||||||
 | 
					# Air will recursively watch these directories.
 | 
				
			||||||
 | 
					include_dir = ["."]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# A list of file extensions to watch.
 | 
				
			||||||
 | 
					# Air will restart when any of these files change.
 | 
				
			||||||
 | 
					include_ext = ["go", "toml", "yaml", "yml"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# A list of directories to ignore.
 | 
				
			||||||
 | 
					# It's good practice to ignore temporary directories, vendor folders, and git history.
 | 
				
			||||||
 | 
					exclude_dir = ["tmp", "vendor", ".git", "proto"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# A list of specific files to ignore.
 | 
				
			||||||
 | 
					exclude_file = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# A list of regular expressions to exclude files or directories.
 | 
				
			||||||
 | 
					exclude_regex = ["_test.go"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# A list of files or directories to watch that are not in the 'include_dir'.
 | 
				
			||||||
 | 
					# Useful for watching template files if they are outside your main source directories.
 | 
				
			||||||
 | 
					include_file = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# This setting is crucial for graceful shutdowns.
 | 
				
			||||||
 | 
					# It stops the running process on a file change before building and restarting.
 | 
				
			||||||
 | 
					# This ensures that your application's shutdown logic is triggered.
 | 
				
			||||||
 | 
					stop_on_error = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Send SIGINT (Ctrl+C) to the running process before killing it.
 | 
				
			||||||
 | 
					# This is essential for allowing your application to handle the signal and shut down gracefully.
 | 
				
			||||||
 | 
					send_interrupt = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# The delay in milliseconds to wait for the process to shut down gracefully after sending SIGINT.
 | 
				
			||||||
 | 
					# If your app needs more time for cleanup, you can increase this value.
 | 
				
			||||||
 | 
					kill_delay = 500 # ms
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[log]
 | 
				
			||||||
 | 
					# Show timestamps in the log output.
 | 
				
			||||||
 | 
					time = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[color]
 | 
				
			||||||
 | 
					# Customize colors for different parts of the air output.
 | 
				
			||||||
 | 
					main = "magenta"
 | 
				
			||||||
 | 
					watcher = "cyan"
 | 
				
			||||||
 | 
					build = "yellow"
 | 
				
			||||||
 | 
					runner = "green"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[misc]
 | 
				
			||||||
 | 
					# Delete the temporary binary file on exit.
 | 
				
			||||||
 | 
					clean_on_exit = true
 | 
				
			||||||
@@ -20,7 +20,7 @@ env:
 | 
				
			|||||||
  CHART_DIR: helm/
 | 
					  CHART_DIR: helm/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  release:
 | 
					  go-binaries:
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    if: startsWith(github.ref, 'refs/tags/v')  # Only run on tag push
 | 
					    if: startsWith(github.ref, 'refs/tags/v')  # Only run on tag push
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@@ -30,7 +30,7 @@ jobs:
 | 
				
			|||||||
      - name: Set up Go Environment
 | 
					      - name: Set up Go Environment
 | 
				
			||||||
        uses: actions/setup-go@v4
 | 
					        uses: actions/setup-go@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          go-version: '1.23'
 | 
					          go-version: '1.24'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Build Binary
 | 
					      - name: Build Binary
 | 
				
			||||||
        run: make build
 | 
					        run: make build
 | 
				
			||||||
@@ -67,6 +67,13 @@ jobs:
 | 
				
			|||||||
            exit 1
 | 
					            exit 1
 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  container-images:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    if: startsWith(github.ref, 'refs/tags/v')  # Only run on tag push
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Checkout Code
 | 
				
			||||||
 | 
					        uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Set up Docker Buildx
 | 
					      - name: Set up Docker Buildx
 | 
				
			||||||
        uses: docker/setup-buildx-action@v3
 | 
					        uses: docker/setup-buildx-action@v3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -119,6 +126,12 @@ jobs:
 | 
				
			|||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
 | 
					          curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Fetch Dependencies
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          cd ${CHART_DIR} && \
 | 
				
			||||||
 | 
					          helm repo add hull https://vidispine.github.io/hull && \
 | 
				
			||||||
 | 
					          helm dep build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Package Chart
 | 
					      - name: Package Chart
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          helm package --app-version ${VERSION} ${CHART_DIR}
 | 
					          helm package --app-version ${VERSION} ${CHART_DIR}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@ ARG GOPROXY
 | 
				
			|||||||
ARG GONOSUMDB=gitea.libretechconsulting.com
 | 
					ARG GONOSUMDB=gitea.libretechconsulting.com
 | 
				
			||||||
ARG VER_PKG=gitea.libretechconsulting.com/rmcguire/go-app/pkg/config.Version
 | 
					ARG VER_PKG=gitea.libretechconsulting.com/rmcguire/go-app/pkg/config.Version
 | 
				
			||||||
ARG VERSION=(devel)
 | 
					ARG VERSION=(devel)
 | 
				
			||||||
ARG APP_NAME=demo-app
 | 
					ARG APP_NAME=go-server-with-otel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY ./go.mod ./go.sum ./
 | 
					COPY ./go.mod ./go.sum ./
 | 
				
			||||||
RUN go mod download
 | 
					RUN go mod download
 | 
				
			||||||
@@ -17,11 +17,11 @@ RUN go build -C . -v -ldflags "-extldflags '-static' -X ${VER_PKG}=${VERSION}" -
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
FROM alpine:latest
 | 
					FROM alpine:latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ARG APP_NAME=demo-app
 | 
					ARG APP_NAME=go-server-with-otel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
USER 100:101
 | 
					USER 100:101
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY --from=build --chown=100:101 /app/${APP_NAME} /app/
 | 
					COPY --from=build --chown=100:101 /app/${APP_NAME} /app/app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENTRYPOINT [ "/app/${APP_NAME}" ]
 | 
					ENTRYPOINT [ "/app/app" ]
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										47
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										47
									
								
								Makefile
									
									
									
									
									
								
							@@ -3,6 +3,7 @@
 | 
				
			|||||||
CMD_NAME := go-server-with-otel
 | 
					CMD_NAME := go-server-with-otel
 | 
				
			||||||
VERSION ?= development
 | 
					VERSION ?= development
 | 
				
			||||||
API_DIR := api/
 | 
					API_DIR := api/
 | 
				
			||||||
 | 
					SCHEMA_DIR := contrib/
 | 
				
			||||||
PROTO_DIRS := $(wildcard proto/demo/app/*) # TODO: Update path (probably not demo)
 | 
					PROTO_DIRS := $(wildcard proto/demo/app/*) # TODO: Update path (probably not demo)
 | 
				
			||||||
PLATFORMS := linux/amd64 linux/arm64 darwin/amd64 darwin/arm64
 | 
					PLATFORMS := linux/amd64 linux/arm64 darwin/amd64 darwin/arm64
 | 
				
			||||||
OUTPUT_DIR := bin
 | 
					OUTPUT_DIR := bin
 | 
				
			||||||
@@ -11,13 +12,9 @@ GIT_REPO := gitea.libretechconsulting.com/rmcguire/go-server-with-otel
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
all: proto test build docker
 | 
					all: proto test build docker
 | 
				
			||||||
 | 
					
 | 
				
			||||||
proto: check_protoc $(API_DIR)
 | 
					proto: check_buf
 | 
				
			||||||
	protoc --proto_path=proto --proto_path=proto/google \
 | 
						buf dep update
 | 
				
			||||||
		--go_out=$(API_DIR) --go_opt=paths=source_relative \
 | 
						buf generate
 | 
				
			||||||
		--go-grpc_out=$(API_DIR) --go-grpc_opt=paths=source_relative \
 | 
					 | 
				
			||||||
		--grpc-gateway_out=$(API_DIR) --grpc-gateway_opt=paths=source_relative \
 | 
					 | 
				
			||||||
		--openapiv2_out=$(API_DIR) \
 | 
					 | 
				
			||||||
		$(foreach dir, $(PROTO_DIRS), $(wildcard $(dir)/*.proto))
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
test:
 | 
					test:
 | 
				
			||||||
	go test -v ./...
 | 
						go test -v ./...
 | 
				
			||||||
@@ -43,6 +40,7 @@ docker:
 | 
				
			|||||||
	docker build \
 | 
						docker build \
 | 
				
			||||||
		--build-arg VER_PKG=$(VER_PKG) \
 | 
							--build-arg VER_PKG=$(VER_PKG) \
 | 
				
			||||||
		--build-arg VERSION=$(VERSION) \
 | 
							--build-arg VERSION=$(VERSION) \
 | 
				
			||||||
 | 
							--build-arg APP_NAME=$(CMD_NAME) \
 | 
				
			||||||
		-t $(GIT_REPO):$(VERSION) .
 | 
							-t $(GIT_REPO):$(VERSION) .
 | 
				
			||||||
	docker push $(GIT_REPO):$(VERSION)
 | 
						docker push $(GIT_REPO):$(VERSION)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -52,28 +50,39 @@ install:
 | 
				
			|||||||
clean:
 | 
					clean:
 | 
				
			||||||
	rm -rf bin/${CMD_NAME}
 | 
						rm -rf bin/${CMD_NAME}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
check_protoc:
 | 
					check_buf:
 | 
				
			||||||
	@if ! command -v protoc-gen-go > /dev/null; then \
 | 
						@if ! command -v buf > /dev/null; then \
 | 
				
			||||||
		echo "Error: protoc-gen-go not found in PATH"; \
 | 
							echo "Error: buf not found in PATH"; \
 | 
				
			||||||
		exit 1; \
 | 
					 | 
				
			||||||
	fi
 | 
					 | 
				
			||||||
	@if ! command -v protoc-gen-go-grpc > /dev/null; then \
 | 
					 | 
				
			||||||
		echo "Error: protoc-gen-go-grpc not found in PATH"; \
 | 
					 | 
				
			||||||
		exit 1; \
 | 
							exit 1; \
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rename:
 | 
					rename:
 | 
				
			||||||
	@echo "Current module path: $(GIT_REPO)"
 | 
						@echo "Current module path: $(GIT_REPO)"
 | 
				
			||||||
	@echo "Usage: make rename NAME=your/new/module/name"
 | 
						@echo "Usage: make rename NAME=your/new/module/name APP=your-app-name"
 | 
				
			||||||
	@if [ -z "$(NAME)" ]; then \
 | 
						@if [ -z "$(NAME)" ]; then \
 | 
				
			||||||
		echo "No name provided. Aborting."; \
 | 
							echo "No package name provided. Aborting."; \
 | 
				
			||||||
		exit 1; \
 | 
							exit 1; \
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
	@echo "New name: $(NAME)"
 | 
						@if [ -z "$(APP)" ]; then \
 | 
				
			||||||
 | 
							echo "No app name provided. Aborting."; \
 | 
				
			||||||
 | 
							exit 1; \
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
						@echo "New name: app=$(APP) pkg=$(NAME)"
 | 
				
			||||||
	@echo "Are you sure you want to proceed? (y/N): " && read CONFIRM && if [ "$$CONFIRM" != "y" ] && [ "$$CONFIRM" != "Y" ]; then \
 | 
						@echo "Are you sure you want to proceed? (y/N): " && read CONFIRM && if [ "$$CONFIRM" != "y" ] && [ "$$CONFIRM" != "Y" ]; then \
 | 
				
			||||||
		echo "Aborted."; \
 | 
							echo "Aborted."; \
 | 
				
			||||||
		exit 1; \
 | 
							exit 1; \
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
 | 
						@sed -i "s|APP_NAME=.*|APP_NAME=$(APP)|g" Dockerfile
 | 
				
			||||||
 | 
						@sed -i "s|^CMD_NAME := .*|CMD_NAME := $(APP)|g" Makefile
 | 
				
			||||||
 | 
						@sed -i "s|merge_file_name=.*|merge_file_name=$(APP)|g" buf.gen.yaml
 | 
				
			||||||
 | 
						@sed -i "s|^name: .*|name: $(APP)|g" helm/Chart.yaml
 | 
				
			||||||
 | 
						@sed -i "s|otelServiceName: .*|otelServiceName: $(APP)|g" helm/values.yaml
 | 
				
			||||||
 | 
						@sed -i "s|= \"demo-app\"|= \"$(APP)\"|g" main.go
 | 
				
			||||||
 | 
						@sed -i "s|app=.*|app=$(APP)|g" helm/values.yaml
 | 
				
			||||||
 | 
						@sed -i "s|$(CMD_NAME)|$(APP)|g" README.md
 | 
				
			||||||
 | 
						@sed -i "s|$(CMD_NAME)|$(APP)|g" .gitea/workflows/ci.yml
 | 
				
			||||||
 | 
						@sed -i "s|$(GIT_REPO)|$(NAME)|g" .gitea/workflows/ci.yml
 | 
				
			||||||
 | 
						@rm contrib/$(CMD_NAME).swagger.json
 | 
				
			||||||
	@find . -type f -a \
 | 
						@find . -type f -a \
 | 
				
			||||||
	\( -name '*.go' -o -name 'go.mod' \
 | 
						\( -name '*.go' -o -name 'go.mod' \
 | 
				
			||||||
		-o -name 'go.sum' -o -name '*.proto' \
 | 
							-o -name 'go.sum' -o -name '*.proto' \
 | 
				
			||||||
@@ -82,4 +91,6 @@ rename:
 | 
				
			|||||||
	\) \
 | 
						\) \
 | 
				
			||||||
	-not -path './.git' -not -path './.git/*' \
 | 
						-not -path './.git' -not -path './.git/*' \
 | 
				
			||||||
	-exec sed -i "s|$(GIT_REPO)|$(NAME)|g" {} +
 | 
						-exec sed -i "s|$(GIT_REPO)|$(NAME)|g" {} +
 | 
				
			||||||
	@echo "Project renamed to $(NAME)"
 | 
						@echo "\n* Project renamed to $(NAME)"
 | 
				
			||||||
 | 
						@echo "* NOTE: You will have to update .gitea/workflows/ci.yml"
 | 
				
			||||||
 | 
						@echo "* NOTE: You will have to run buf generate"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										18
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								README.md
									
									
									
									
									
								
							@@ -10,6 +10,7 @@ Check out the [go-app framework](https://gitea.libretechconsulting.com/rmcguire/
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- **📈 OpenTelemetry (OTEL) Metrics & Traces** – Comprehensive observability with built-in support for metrics and traces.
 | 
					- **📈 OpenTelemetry (OTEL) Metrics & Traces** – Comprehensive observability with built-in support for metrics and traces.
 | 
				
			||||||
- 📝 Logging with Zerolog – High-performance structured logging with zerolog for ultra-fast, leveled logging.
 | 
					- 📝 Logging with Zerolog – High-performance structured logging with zerolog for ultra-fast, leveled logging.
 | 
				
			||||||
 | 
					- 💻 Local dev with air pre-configured (just run `air`)
 | 
				
			||||||
- **💬 GRPC + GRPC-Gateway** – Supports RESTful JSON APIs alongside gRPC with auto-generated Swagger (OpenAPI2) specs.
 | 
					- **💬 GRPC + GRPC-Gateway** – Supports RESTful JSON APIs alongside gRPC with auto-generated Swagger (OpenAPI2) specs.
 | 
				
			||||||
- 🌐 HTTP and GRPC Middleware – Flexible middleware support for HTTP and GRPC to enhance request handling, authentication, and observability.
 | 
					- 🌐 HTTP and GRPC Middleware – Flexible middleware support for HTTP and GRPC to enhance request handling, authentication, and observability.
 | 
				
			||||||
- **📦 Multi-Arch Builds** – Robust Makefile that supports building for multiple architectures (amd64, arm64, etc.).
 | 
					- **📦 Multi-Arch Builds** – Robust Makefile that supports building for multiple architectures (amd64, arm64, etc.).
 | 
				
			||||||
@@ -25,32 +26,39 @@ Check out the [go-app framework](https://gitea.libretechconsulting.com/rmcguire/
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## 📚 Getting Started
 | 
					## 📚 Getting Started
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Install tools:
 | 
				
			||||||
 | 
					   - Install make, protoc, and go using brew, apt, etc..
 | 
				
			||||||
 | 
					   - Install protoc plugins (provided in go.mod tool()):
 | 
				
			||||||
 | 
					      - `go get -v tool && go install -v tool`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1. **Rename your package:**
 | 
					1. **Rename your package:**
 | 
				
			||||||
   ```sh
 | 
					   ```sh
 | 
				
			||||||
   make rename NAME=my.gitremote.com/pathto/repo
 | 
					   make rename NAME=my.gitremote.com/pathto/repo
 | 
				
			||||||
   ```
 | 
					   ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2. **Review the config struct:**
 | 
					1. **Review the config struct:**
 | 
				
			||||||
   Update and customize your app-specific configuration. This merges with go-app's configuration, providing logging, HTTP, and GRPC config for free.
 | 
					   Update and customize your app-specific configuration. This merges with go-app's configuration, providing logging, HTTP, and GRPC config for free.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
3. **Generate a new JSON schema:**
 | 
					1. **Generate a new JSON schema:**
 | 
				
			||||||
   ```sh
 | 
					   ```sh
 | 
				
			||||||
   make schema
 | 
					   make schema
 | 
				
			||||||
   ```
 | 
					   ```
 | 
				
			||||||
   - Ensure your structs have `yaml` and `json` tags.
 | 
					   - Ensure your structs have `yaml` and `json` tags.
 | 
				
			||||||
   - With the `yaml-language-server` LSP plugin, the schema will be auto-detected in your `config.yaml`.
 | 
					   - With the `yaml-language-server` LSP plugin, the schema will be auto-detected in your `config.yaml`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
4. **Compile proto files:**
 | 
					1. **Compile proto files:**
 | 
				
			||||||
   ```sh
 | 
					   ```sh
 | 
				
			||||||
   make proto
 | 
					   make proto
 | 
				
			||||||
   ```
 | 
					   ```
 | 
				
			||||||
   - Add paths under `proto/` as necessary.
 | 
					   - Add paths under `proto/` as necessary.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
5. **Implement your application logic.**
 | 
					1. **Implement your application logic.**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
6. **Update Gitea CI configuration:**
 | 
					1. **Update Gitea CI configuration:**
 | 
				
			||||||
   Modify parameters in `.gitea/workflows/ci.yaml` as needed.
 | 
					   Modify parameters in `.gitea/workflows/ci.yaml` as needed.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1. Tag your release: `git tag v0.1.0` and push `git push --tags`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## 📂 Project Structure
 | 
					## 📂 Project Structure
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								TODO.md
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								TODO.md
									
									
									
									
									
								
							@@ -1,5 +1,9 @@
 | 
				
			|||||||
# Demo app TODO
 | 
					# Demo app TODO
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- [x] Create generic interface for implenting a service
 | 
				
			||||||
 | 
					- [x] Create config sample not called demo, so it is more easily reused
 | 
				
			||||||
 | 
					- [x] Update README for tagging/versioning/pipeline info
 | 
				
			||||||
 | 
					- [x] Update README for detail on installing protoc tools and make
 | 
				
			||||||
- [x] Rename project
 | 
					- [x] Rename project
 | 
				
			||||||
- [x] Finish grpc sample implementation
 | 
					- [x] Finish grpc sample implementation
 | 
				
			||||||
- [x] Add Dockerfile
 | 
					- [x] Add Dockerfile
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,12 +1,13 @@
 | 
				
			|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
 | 
					// Code generated by protoc-gen-go. DO NOT EDIT.
 | 
				
			||||||
// versions:
 | 
					// versions:
 | 
				
			||||||
// 	protoc-gen-go v1.36.6
 | 
					// 	protoc-gen-go v1.36.6
 | 
				
			||||||
// 	protoc        v5.29.3
 | 
					// 	protoc        (unknown)
 | 
				
			||||||
// source: demo/app/v1alpha1/app.proto
 | 
					// source: demo/app/v1alpha1/app.proto
 | 
				
			||||||
 | 
					
 | 
				
			||||||
package demo
 | 
					package demo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
 | 
						_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
 | 
				
			||||||
	_ "google.golang.org/genproto/googleapis/api/annotations"
 | 
						_ "google.golang.org/genproto/googleapis/api/annotations"
 | 
				
			||||||
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
						protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | 
				
			||||||
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
						protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | 
				
			||||||
@@ -143,17 +144,18 @@ var File_demo_app_v1alpha1_app_proto protoreflect.FileDescriptor
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const file_demo_app_v1alpha1_app_proto_rawDesc = "" +
 | 
					const file_demo_app_v1alpha1_app_proto_rawDesc = "" +
 | 
				
			||||||
	"\n" +
 | 
						"\n" +
 | 
				
			||||||
	"\x1bdemo/app/v1alpha1/app.proto\x12\x11demo.app.v1alpha1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\">\n" +
 | 
						"\x1bdemo/app/v1alpha1/app.proto\x12\x11demo.app.v1alpha1\x1a\x1bbuf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"G\n" +
 | 
				
			||||||
	"\x0eGetDemoRequest\x12\x1f\n" +
 | 
						"\x0eGetDemoRequest\x12(\n" +
 | 
				
			||||||
	"\blanguage\x18\x01 \x01(\tH\x00R\blanguage\x88\x01\x01B\v\n" +
 | 
						"\blanguage\x18\x01 \x01(\tB\a\xbaH\x04r\x02\x10\x02H\x00R\blanguage\x88\x01\x01B\v\n" +
 | 
				
			||||||
	"\t_language\"\x93\x01\n" +
 | 
						"\t_language\"\x9c\x01\n" +
 | 
				
			||||||
	"\x0fGetDemoResponse\x128\n" +
 | 
						"\x0fGetDemoResponse\x128\n" +
 | 
				
			||||||
	"\ttimestamp\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12\x12\n" +
 | 
						"\ttimestamp\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12\x12\n" +
 | 
				
			||||||
	"\x04fact\x18\x02 \x01(\tR\x04fact\x12\x16\n" +
 | 
						"\x04fact\x18\x02 \x01(\tR\x04fact\x12\x16\n" +
 | 
				
			||||||
	"\x06source\x18\x03 \x01(\tR\x06source\x12\x1a\n" +
 | 
						"\x06source\x18\x03 \x01(\tR\x06source\x12#\n" +
 | 
				
			||||||
	"\blanguage\x18\x04 \x01(\tR\blanguage2z\n" +
 | 
						"\blanguage\x18\x04 \x01(\tB\a\xbaH\x04r\x02\x10\x02R\blanguage2z\n" +
 | 
				
			||||||
	"\x0eDemoAppService\x12h\n" +
 | 
						"\x0eDemoAppService\x12h\n" +
 | 
				
			||||||
	"\aGetDemo\x12!.demo.app.v1alpha1.GetDemoRequest\x1a\".demo.app.v1alpha1.GetDemoResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/v1alpha1/demoBNZLgitea.libretechconsulting.com/rmcguire/go-server-with-otel/api/v1alpha1/demob\x06proto3"
 | 
						"\aGetDemo\x12!.demo.app.v1alpha1.GetDemoRequest\x1a\".demo.app.v1alpha1.GetDemoResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/v1alpha1/demoB\xd5\x01\n" +
 | 
				
			||||||
 | 
						"\x15com.demo.app.v1alpha1B\bAppProtoP\x01ZLgitea.libretechconsulting.com/rmcguire/go-server-with-otel/api/v1alpha1/demo\xa2\x02\x03DAX\xaa\x02\x11Demo.App.V1alpha1\xca\x02\x11Demo\\App\\V1alpha1\xe2\x02\x1dDemo\\App\\V1alpha1\\GPBMetadata\xea\x02\x13Demo::App::V1alpha1b\x06proto3"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var (
 | 
					var (
 | 
				
			||||||
	file_demo_app_v1alpha1_app_proto_rawDescOnce sync.Once
 | 
						file_demo_app_v1alpha1_app_proto_rawDescOnce sync.Once
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,7 +42,9 @@ func request_DemoAppService_GetDemo_0(ctx context.Context, marshaler runtime.Mar
 | 
				
			|||||||
		protoReq GetDemoRequest
 | 
							protoReq GetDemoRequest
 | 
				
			||||||
		metadata runtime.ServerMetadata
 | 
							metadata runtime.ServerMetadata
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
	io.Copy(io.Discard, req.Body)
 | 
						if req.Body != nil {
 | 
				
			||||||
 | 
							_, _ = io.Copy(io.Discard, req.Body)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	if err := req.ParseForm(); err != nil {
 | 
						if err := req.ParseForm(); err != nil {
 | 
				
			||||||
		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
 | 
							return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | 
					// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 | 
				
			||||||
// versions:
 | 
					// versions:
 | 
				
			||||||
// - protoc-gen-go-grpc v1.5.1
 | 
					// - protoc-gen-go-grpc v1.5.1
 | 
				
			||||||
// - protoc             v5.29.3
 | 
					// - protoc             (unknown)
 | 
				
			||||||
// source: demo/app/v1alpha1/app.proto
 | 
					// source: demo/app/v1alpha1/app.proto
 | 
				
			||||||
 | 
					
 | 
				
			||||||
package demo
 | 
					package demo
 | 
				
			||||||
@@ -48,14 +48,13 @@ func (c *demoAppServiceClient) GetDemo(ctx context.Context, in *GetDemoRequest,
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// DemoAppServiceServer is the server API for DemoAppService service.
 | 
					// DemoAppServiceServer is the server API for DemoAppService service.
 | 
				
			||||||
// All implementations must embed UnimplementedDemoAppServiceServer
 | 
					// All implementations should embed UnimplementedDemoAppServiceServer
 | 
				
			||||||
// for forward compatibility.
 | 
					// for forward compatibility.
 | 
				
			||||||
type DemoAppServiceServer interface {
 | 
					type DemoAppServiceServer interface {
 | 
				
			||||||
	GetDemo(context.Context, *GetDemoRequest) (*GetDemoResponse, error)
 | 
						GetDemo(context.Context, *GetDemoRequest) (*GetDemoResponse, error)
 | 
				
			||||||
	mustEmbedUnimplementedDemoAppServiceServer()
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// UnimplementedDemoAppServiceServer must be embedded to have
 | 
					// UnimplementedDemoAppServiceServer should be embedded to have
 | 
				
			||||||
// forward compatible implementations.
 | 
					// forward compatible implementations.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
 | 
					// NOTE: this should be embedded by value instead of pointer to avoid a nil
 | 
				
			||||||
@@ -65,8 +64,7 @@ type UnimplementedDemoAppServiceServer struct{}
 | 
				
			|||||||
func (UnimplementedDemoAppServiceServer) GetDemo(context.Context, *GetDemoRequest) (*GetDemoResponse, error) {
 | 
					func (UnimplementedDemoAppServiceServer) GetDemo(context.Context, *GetDemoRequest) (*GetDemoResponse, error) {
 | 
				
			||||||
	return nil, status.Errorf(codes.Unimplemented, "method GetDemo not implemented")
 | 
						return nil, status.Errorf(codes.Unimplemented, "method GetDemo not implemented")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
func (UnimplementedDemoAppServiceServer) mustEmbedUnimplementedDemoAppServiceServer() {}
 | 
					func (UnimplementedDemoAppServiceServer) testEmbeddedByValue() {}
 | 
				
			||||||
func (UnimplementedDemoAppServiceServer) testEmbeddedByValue()                        {}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
// UnsafeDemoAppServiceServer may be embedded to opt out of forward compatibility for this service.
 | 
					// UnsafeDemoAppServiceServer may be embedded to opt out of forward compatibility for this service.
 | 
				
			||||||
// Use of this interface is not recommended, as added methods to DemoAppServiceServer will
 | 
					// Use of this interface is not recommended, as added methods to DemoAppServiceServer will
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										28
									
								
								buf.gen.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								buf.gen.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					version: v2
 | 
				
			||||||
 | 
					managed:
 | 
				
			||||||
 | 
					  enabled: true
 | 
				
			||||||
 | 
					  disable:
 | 
				
			||||||
 | 
					    - file_option: go_package
 | 
				
			||||||
 | 
					      module: buf.build/bufbuild/protovalidate
 | 
				
			||||||
 | 
					plugins:
 | 
				
			||||||
 | 
					  - remote: buf.build/protocolbuffers/go
 | 
				
			||||||
 | 
					    out: api
 | 
				
			||||||
 | 
					    opt:
 | 
				
			||||||
 | 
					      - paths=source_relative
 | 
				
			||||||
 | 
					  - remote: buf.build/grpc/go
 | 
				
			||||||
 | 
					    out: api
 | 
				
			||||||
 | 
					    opt:
 | 
				
			||||||
 | 
					      - paths=source_relative
 | 
				
			||||||
 | 
					      - require_unimplemented_servers=false
 | 
				
			||||||
 | 
					  - remote: buf.build/grpc-ecosystem/gateway
 | 
				
			||||||
 | 
					    out: api
 | 
				
			||||||
 | 
					    opt:
 | 
				
			||||||
 | 
					      - paths=source_relative
 | 
				
			||||||
 | 
					      - generate_unbound_methods=true
 | 
				
			||||||
 | 
					  - remote: buf.build/grpc-ecosystem/openapiv2
 | 
				
			||||||
 | 
					    out: contrib/
 | 
				
			||||||
 | 
					    opt:
 | 
				
			||||||
 | 
					      - merge_file_name=go-server-with-otel
 | 
				
			||||||
 | 
					      - allow_merge=true
 | 
				
			||||||
 | 
					inputs:
 | 
				
			||||||
 | 
					  - directory: proto
 | 
				
			||||||
							
								
								
									
										12
									
								
								buf.lock
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								buf.lock
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					# Generated by buf. DO NOT EDIT.
 | 
				
			||||||
 | 
					version: v2
 | 
				
			||||||
 | 
					deps:
 | 
				
			||||||
 | 
					  - name: buf.build/bufbuild/protovalidate
 | 
				
			||||||
 | 
					    commit: 6c6e0d3c608e4549802254a2eee81bc8
 | 
				
			||||||
 | 
					    digest: b5:a7ca081f38656fc0f5aaa685cc111d3342876723851b47ca6b80cbb810cbb2380f8c444115c495ada58fa1f85eff44e68dc54a445761c195acdb5e8d9af675b6
 | 
				
			||||||
 | 
					  - name: buf.build/googleapis/googleapis
 | 
				
			||||||
 | 
					    commit: 61b203b9a9164be9a834f58c37be6f62
 | 
				
			||||||
 | 
					    digest: b5:7811a98b35bd2e4ae5c3ac73c8b3d9ae429f3a790da15de188dc98fc2b77d6bb10e45711f14903af9553fa9821dff256054f2e4b7795789265bc476bec2f088c
 | 
				
			||||||
 | 
					  - name: buf.build/grpc-ecosystem/grpc-gateway
 | 
				
			||||||
 | 
					    commit: 4c5ba75caaf84e928b7137ae5c18c26a
 | 
				
			||||||
 | 
					    digest: b5:c113e62fb3b29289af785866cae062b55ec8ae19ab3f08f3004098928fbca657730a06810b2012951294326b95669547194fa84476b9e9b688d4f8bf77a0691d
 | 
				
			||||||
							
								
								
									
										14
									
								
								buf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								buf.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					# For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml
 | 
				
			||||||
 | 
					version: v2
 | 
				
			||||||
 | 
					modules:
 | 
				
			||||||
 | 
					  - path: proto
 | 
				
			||||||
 | 
					deps:
 | 
				
			||||||
 | 
					  - buf.build/bufbuild/protovalidate
 | 
				
			||||||
 | 
					  - buf.build/googleapis/googleapis
 | 
				
			||||||
 | 
					  - buf.build/grpc-ecosystem/grpc-gateway
 | 
				
			||||||
 | 
					lint:
 | 
				
			||||||
 | 
					  use:
 | 
				
			||||||
 | 
					    - STANDARD
 | 
				
			||||||
 | 
					breaking:
 | 
				
			||||||
 | 
					  use:
 | 
				
			||||||
 | 
					    - FILE
 | 
				
			||||||
@@ -26,4 +26,5 @@ grpc:
 | 
				
			|||||||
  grpcGatewayPath: /api
 | 
					  grpcGatewayPath: /api
 | 
				
			||||||
  enableGRPCGateway: true
 | 
					  enableGRPCGateway: true
 | 
				
			||||||
  enableInstrumentation: true
 | 
					  enableInstrumentation: true
 | 
				
			||||||
 | 
					  enableProtovalidate: true
 | 
				
			||||||
  logRequests: true
 | 
					  logRequests: true
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,6 +26,11 @@
 | 
				
			|||||||
        "enableInstrumentation": {
 | 
					        "enableInstrumentation": {
 | 
				
			||||||
          "type": "boolean"
 | 
					          "type": "boolean"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					        "enableProtovalidate": {
 | 
				
			||||||
 | 
					          "description": "Add a chain unary and streaming interceptor for buf.build/go/protovalidate",
 | 
				
			||||||
 | 
					          "default": false,
 | 
				
			||||||
 | 
					          "type": "boolean"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        "enableReflection": {
 | 
					        "enableReflection": {
 | 
				
			||||||
          "type": "boolean"
 | 
					          "type": "boolean"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										88
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										88
									
								
								go.mod
									
									
									
									
									
								
							@@ -1,58 +1,78 @@
 | 
				
			|||||||
module gitea.libretechconsulting.com/rmcguire/go-server-with-otel
 | 
					module gitea.libretechconsulting.com/rmcguire/go-server-with-otel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
go 1.24.1
 | 
					go 1.24.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					toolchain go1.24.5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					replace github.com/prometheus/otlptranslator => github.com/prometheus/otlptranslator v0.0.0-20250717125610-8549f4ab4f8f
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require (
 | 
					require (
 | 
				
			||||||
	gitea.libretechconsulting.com/rmcguire/go-app v0.9.2
 | 
						buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.7-20250717185734-6c6e0d3c608e.1
 | 
				
			||||||
 | 
						gitea.libretechconsulting.com/rmcguire/go-app v0.10.2
 | 
				
			||||||
	github.com/go-resty/resty/v2 v2.16.5
 | 
						github.com/go-resty/resty/v2 v2.16.5
 | 
				
			||||||
	github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3
 | 
						github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1
 | 
				
			||||||
	github.com/rs/zerolog v1.34.0
 | 
						github.com/rs/zerolog v1.34.0
 | 
				
			||||||
	go.opentelemetry.io/otel/trace v1.35.0
 | 
						go.opentelemetry.io/otel/trace v1.37.0
 | 
				
			||||||
	golang.org/x/sys v0.31.0
 | 
						golang.org/x/sys v0.35.0
 | 
				
			||||||
	google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463
 | 
						google.golang.org/genproto/googleapis/api v0.0.0-20250811230008-5f3141c8851a
 | 
				
			||||||
	google.golang.org/grpc v1.71.0
 | 
						google.golang.org/grpc v1.74.2
 | 
				
			||||||
	google.golang.org/protobuf v1.36.6
 | 
						google.golang.org/protobuf v1.36.7
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require (
 | 
					require (
 | 
				
			||||||
	github.com/caarlos0/env/v11 v11.3.1 // indirect
 | 
						github.com/caarlos0/env/v11 v11.3.1 // indirect
 | 
				
			||||||
	github.com/felixge/httpsnoop v1.0.4 // indirect
 | 
						github.com/felixge/httpsnoop v1.0.4 // indirect
 | 
				
			||||||
	github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.1 // indirect
 | 
						github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.2 // indirect
 | 
				
			||||||
	github.com/klauspost/compress v1.18.0 // indirect
 | 
						github.com/swaggest/jsonschema-go v0.3.78 // indirect
 | 
				
			||||||
	github.com/swaggest/jsonschema-go v0.3.73 // indirect
 | 
						github.com/swaggest/refl v1.4.0 // indirect
 | 
				
			||||||
	github.com/swaggest/refl v1.3.1 // indirect
 | 
						go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.62.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
 | 
						go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
 | 
						go.opentelemetry.io/otel v1.37.0
 | 
				
			||||||
	go.opentelemetry.io/otel v1.35.0
 | 
						go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.37.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.35.0 // indirect
 | 
						go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.37.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 // indirect
 | 
						go.opentelemetry.io/otel/exporters/prometheus v0.59.1 // indirect
 | 
				
			||||||
	go.opentelemetry.io/otel/exporters/prometheus v0.57.0 // indirect
 | 
						go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.37.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.35.0 // indirect
 | 
						go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.37.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.35.0 // indirect
 | 
						go.opentelemetry.io/otel/sdk v1.37.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/otel/sdk v1.35.0 // indirect
 | 
						go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/otel/sdk/metric v1.35.0 // indirect
 | 
					 | 
				
			||||||
	gopkg.in/yaml.v3 v3.0.1 // indirect
 | 
						gopkg.in/yaml.v3 v3.0.1 // indirect
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require (
 | 
					require (
 | 
				
			||||||
 | 
						buf.build/go/protovalidate v0.14.0 // indirect
 | 
				
			||||||
 | 
						cel.dev/expr v0.24.0 // indirect
 | 
				
			||||||
 | 
						github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
 | 
				
			||||||
	github.com/beorn7/perks v1.0.1 // indirect
 | 
						github.com/beorn7/perks v1.0.1 // indirect
 | 
				
			||||||
	github.com/cenkalti/backoff/v4 v4.3.0 // indirect
 | 
						github.com/cenkalti/backoff/v5 v5.0.3 // indirect
 | 
				
			||||||
	github.com/cespare/xxhash/v2 v2.3.0 // indirect
 | 
						github.com/cespare/xxhash/v2 v2.3.0 // indirect
 | 
				
			||||||
	github.com/go-logr/logr v1.4.2 // indirect
 | 
						github.com/go-logr/logr v1.4.3 // indirect
 | 
				
			||||||
	github.com/go-logr/stdr v1.2.2 // indirect
 | 
						github.com/go-logr/stdr v1.2.2 // indirect
 | 
				
			||||||
 | 
						github.com/google/cel-go v0.26.0 // indirect
 | 
				
			||||||
	github.com/google/uuid v1.6.0 // indirect
 | 
						github.com/google/uuid v1.6.0 // indirect
 | 
				
			||||||
 | 
						github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect
 | 
				
			||||||
	github.com/mattn/go-colorable v0.1.14 // indirect
 | 
						github.com/mattn/go-colorable v0.1.14 // indirect
 | 
				
			||||||
	github.com/mattn/go-isatty v0.0.20 // indirect
 | 
						github.com/mattn/go-isatty v0.0.20 // indirect
 | 
				
			||||||
	github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
 | 
						github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
 | 
				
			||||||
	github.com/prometheus/client_golang v1.21.1 // indirect
 | 
						github.com/prometheus/client_golang v1.23.0 // indirect
 | 
				
			||||||
	github.com/prometheus/client_model v0.6.1 // indirect
 | 
						github.com/prometheus/client_model v0.6.2 // indirect
 | 
				
			||||||
	github.com/prometheus/common v0.63.0 // indirect
 | 
						github.com/prometheus/common v0.65.0 // indirect
 | 
				
			||||||
	github.com/prometheus/procfs v0.16.0 // indirect
 | 
						github.com/prometheus/otlptranslator v0.0.0-20250717125610-8549f4ab4f8f // indirect
 | 
				
			||||||
 | 
						github.com/prometheus/procfs v0.17.0 // indirect
 | 
				
			||||||
 | 
						github.com/stoewer/go-strcase v1.3.1 // indirect
 | 
				
			||||||
	go.opentelemetry.io/auto/sdk v1.1.0 // indirect
 | 
						go.opentelemetry.io/auto/sdk v1.1.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0 // indirect
 | 
						go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.37.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/otel/metric v1.35.0 // indirect
 | 
						go.opentelemetry.io/otel/metric v1.37.0 // indirect
 | 
				
			||||||
	go.opentelemetry.io/proto/otlp v1.5.0 // indirect
 | 
						go.opentelemetry.io/proto/otlp v1.7.1 // indirect
 | 
				
			||||||
	golang.org/x/net v0.38.0 // indirect
 | 
						golang.org/x/exp v0.0.0-20250813145105-42675adae3e6 // indirect
 | 
				
			||||||
	golang.org/x/text v0.23.0 // indirect
 | 
						golang.org/x/net v0.43.0 // indirect
 | 
				
			||||||
	google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 // indirect
 | 
						golang.org/x/text v0.28.0 // indirect
 | 
				
			||||||
 | 
						google.golang.org/genproto/googleapis/rpc v0.0.0-20250811230008-5f3141c8851a // indirect
 | 
				
			||||||
 | 
						google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 // indirect
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					tool (
 | 
				
			||||||
 | 
						github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
 | 
				
			||||||
 | 
						github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
 | 
				
			||||||
 | 
						google.golang.org/grpc/cmd/protoc-gen-go-grpc
 | 
				
			||||||
 | 
						google.golang.org/protobuf/cmd/protoc-gen-go
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										179
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										179
									
								
								go.sum
									
									
									
									
									
								
							@@ -1,5 +1,17 @@
 | 
				
			|||||||
gitea.libretechconsulting.com/rmcguire/go-app v0.9.2 h1:DTbGae0TR7O+kKI1ZE8txgFnGb0vsYX/urFUFuoZfQM=
 | 
					buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.6-20250717185734-6c6e0d3c608e.1 h1:Lg6klmCi3v7VvpqeeLEER9/m5S8y9e9DjhqQnSCNy4k=
 | 
				
			||||||
gitea.libretechconsulting.com/rmcguire/go-app v0.9.2/go.mod h1:W6YHFSGf4nJrgs9DqEaw+3J6ufIARsr1zpOs/V6gRTQ=
 | 
					buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.6-20250717185734-6c6e0d3c608e.1/go.mod h1:avRlCjnFzl98VPaeCtJ24RrV/wwHFzB8sWXhj26+n/U=
 | 
				
			||||||
 | 
					buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.7-20250717185734-6c6e0d3c608e.1 h1:/AZH8sVB6LHv8G+hZlAMCP31NevnesHwYgnlgS5Vt14=
 | 
				
			||||||
 | 
					buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.7-20250717185734-6c6e0d3c608e.1/go.mod h1:eva/VCrd8X7xuJw+JtwCEyrCKiRRASukFqmirnWBvFU=
 | 
				
			||||||
 | 
					buf.build/go/protovalidate v0.14.0 h1:kr/rC/no+DtRyYX+8KXLDxNnI1rINz0imk5K44ZpZ3A=
 | 
				
			||||||
 | 
					buf.build/go/protovalidate v0.14.0/go.mod h1:+F/oISho9MO7gJQNYC2VWLzcO1fTPmaTA08SDYJZncA=
 | 
				
			||||||
 | 
					cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY=
 | 
				
			||||||
 | 
					cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw=
 | 
				
			||||||
 | 
					gitea.libretechconsulting.com/rmcguire/go-app v0.10.0 h1:Cx3fTaNEEAZQUn6zeg2yXj0CnkBLjf2yrGWX8f/uHzM=
 | 
				
			||||||
 | 
					gitea.libretechconsulting.com/rmcguire/go-app v0.10.0/go.mod h1:26ZbEKfhPU4XFWltysJDMhaLJk6qVrUFxhrkoFmv33I=
 | 
				
			||||||
 | 
					gitea.libretechconsulting.com/rmcguire/go-app v0.10.2 h1:dwTvWWA2MJUuf8xlakZjqCGZamN3oEVmTLJuCCAQIlc=
 | 
				
			||||||
 | 
					gitea.libretechconsulting.com/rmcguire/go-app v0.10.2/go.mod h1:pGjVInL1iiA54lJkQ+V/NGa1RzqVpE6firhfhq7XUmw=
 | 
				
			||||||
 | 
					github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ=
 | 
				
			||||||
 | 
					github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw=
 | 
				
			||||||
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
 | 
					github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
 | 
				
			||||||
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
 | 
					github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
 | 
				
			||||||
github.com/bool64/dev v0.2.39 h1:kP8DnMGlWXhGYJEZE/J0l/gVBdbuhoPGL+MJG4QbofE=
 | 
					github.com/bool64/dev v0.2.39 h1:kP8DnMGlWXhGYJEZE/J0l/gVBdbuhoPGL+MJG4QbofE=
 | 
				
			||||||
@@ -8,18 +20,21 @@ github.com/bool64/shared v0.1.5 h1:fp3eUhBsrSjNCQPcSdQqZxxh9bBwrYiZ+zOKFkM0/2E=
 | 
				
			|||||||
github.com/bool64/shared v0.1.5/go.mod h1:081yz68YC9jeFB3+Bbmno2RFWvGKv1lPKkMP6MHJlPs=
 | 
					github.com/bool64/shared v0.1.5/go.mod h1:081yz68YC9jeFB3+Bbmno2RFWvGKv1lPKkMP6MHJlPs=
 | 
				
			||||||
github.com/caarlos0/env/v11 v11.3.1 h1:cArPWC15hWmEt+gWk7YBi7lEXTXCvpaSdCiZE2X5mCA=
 | 
					github.com/caarlos0/env/v11 v11.3.1 h1:cArPWC15hWmEt+gWk7YBi7lEXTXCvpaSdCiZE2X5mCA=
 | 
				
			||||||
github.com/caarlos0/env/v11 v11.3.1/go.mod h1:qupehSf/Y0TUTsxKywqRt/vJjN5nz6vauiYEUUr8P4U=
 | 
					github.com/caarlos0/env/v11 v11.3.1/go.mod h1:qupehSf/Y0TUTsxKywqRt/vJjN5nz6vauiYEUUr8P4U=
 | 
				
			||||||
github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=
 | 
					github.com/cenkalti/backoff/v5 v5.0.2 h1:rIfFVxEf1QsI7E1ZHfp/B4DF/6QBAUhmgkxc0H7Zss8=
 | 
				
			||||||
github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
 | 
					github.com/cenkalti/backoff/v5 v5.0.2/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw=
 | 
				
			||||||
 | 
					github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM=
 | 
				
			||||||
 | 
					github.com/cenkalti/backoff/v5 v5.0.3/go.mod h1:rkhZdG3JZukswDf7f0cwqPNk4K0sa+F97BxZthm/crw=
 | 
				
			||||||
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
 | 
					github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
 | 
				
			||||||
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
 | 
					github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
 | 
				
			||||||
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
 | 
					github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
 | 
				
			||||||
 | 
					github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 | 
				
			||||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
 | 
					github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
 | 
				
			||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 | 
					github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 | 
				
			||||||
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
 | 
					github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
 | 
				
			||||||
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
 | 
					github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
 | 
				
			||||||
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
 | 
					github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
 | 
				
			||||||
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
 | 
					github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
 | 
				
			||||||
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
 | 
					github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
 | 
				
			||||||
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
 | 
					github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
 | 
				
			||||||
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
 | 
					github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
 | 
				
			||||||
github.com/go-resty/resty/v2 v2.16.5 h1:hBKqmWrr7uRc3euHVqmh1HTHcKn99Smr7o5spptdhTM=
 | 
					github.com/go-resty/resty/v2 v2.16.5 h1:hBKqmWrr7uRc3euHVqmh1HTHcKn99Smr7o5spptdhTM=
 | 
				
			||||||
@@ -27,15 +42,18 @@ github.com/go-resty/resty/v2 v2.16.5/go.mod h1:hkJtXbA2iKHzJheXYvQ8snQES5ZLGKMwQ
 | 
				
			|||||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
 | 
					github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
 | 
				
			||||||
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
 | 
					github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
 | 
				
			||||||
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
 | 
					github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
 | 
				
			||||||
 | 
					github.com/google/cel-go v0.26.0 h1:DPGjXackMpJWH680oGY4lZhYjIameYmR+/6RBdDGmaI=
 | 
				
			||||||
 | 
					github.com/google/cel-go v0.26.0/go.mod h1:A9O8OU9rdvrK5MQyrqfIxo1a0u4g3sF8KB6PUIaryMM=
 | 
				
			||||||
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
 | 
					github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
 | 
				
			||||||
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
 | 
					github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
 | 
				
			||||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
 | 
					github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
 | 
				
			||||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
 | 
					github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
 | 
				
			||||||
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.1 h1:KcFzXwzM/kGhIRHvc8jdixfIJjVzuUJdnv+5xsPutog=
 | 
					github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc h1:GN2Lv3MGO7AS6PrRoT6yV5+wkrOpcszoIsO4+4ds248=
 | 
				
			||||||
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.1/go.mod h1:qOchhhIlmRcqk/O9uCo/puJlyo07YINaIqdZfZG3Jkc=
 | 
					github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc/go.mod h1:+JKpmjMGhpgPL+rXZ5nsZieVzvarn86asRlBg4uNGnk=
 | 
				
			||||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=
 | 
					github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.2 h1:sGm2vDRFUrQJO/Veii4h4zG2vvqG6uWNkBHSTqXOZk0=
 | 
				
			||||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 h1:5ZPtiqj0JL5oKWmcsq4VMaAW5ukBEgSGXEN89zeH1Jo=
 | 
					github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.2/go.mod h1:wd1YpapPLivG6nQgbf7ZkG1hhSOXDhhn4MLTknx2aAc=
 | 
				
			||||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3/go.mod h1:ndYquD05frm2vACXE1nsccT4oJzjhw2arTS2cpUD1PI=
 | 
					github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 h1:X5VWvz21y3gzm9Nw/kaUeku/1+uBhcekkmy4IkffJww=
 | 
				
			||||||
 | 
					github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1/go.mod h1:Zanoh4+gvIgluNqcfMVTJueD4wSS5hT7zTt4Mrutd90=
 | 
				
			||||||
github.com/iancoleman/orderedmap v0.3.0 h1:5cbR2grmZR/DiVt+VJopEhtVs9YGInGIxAoMJn+Ichc=
 | 
					github.com/iancoleman/orderedmap v0.3.0 h1:5cbR2grmZR/DiVt+VJopEhtVs9YGInGIxAoMJn+Ichc=
 | 
				
			||||||
github.com/iancoleman/orderedmap v0.3.0/go.mod h1:XuLcCUkdL5owUCQeF2Ue9uuw1EptkJDkXXS7VoV7XGE=
 | 
					github.com/iancoleman/orderedmap v0.3.0/go.mod h1:XuLcCUkdL5owUCQeF2Ue9uuw1EptkJDkXXS7VoV7XGE=
 | 
				
			||||||
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
 | 
					github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
 | 
				
			||||||
@@ -58,14 +76,18 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8m
 | 
				
			|||||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
 | 
					github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
 | 
				
			||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 | 
					github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 | 
				
			||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
 | 
					github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
 | 
				
			||||||
github.com/prometheus/client_golang v1.21.1 h1:DOvXXTqVzvkIewV/CDPFdejpMCGeMcbGCQ8YOmu+Ibk=
 | 
					github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q=
 | 
				
			||||||
github.com/prometheus/client_golang v1.21.1/go.mod h1:U9NM32ykUErtVBxdvD3zfi+EuFkkaBvMb09mIfe0Zgg=
 | 
					github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0=
 | 
				
			||||||
github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=
 | 
					github.com/prometheus/client_golang v1.23.0 h1:ust4zpdl9r4trLY/gSjlm07PuiBq2ynaXXlptpfy8Uc=
 | 
				
			||||||
github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY=
 | 
					github.com/prometheus/client_golang v1.23.0/go.mod h1:i/o0R9ByOnHX0McrTMTyhYvKE4haaf2mW08I+jGAjEE=
 | 
				
			||||||
github.com/prometheus/common v0.63.0 h1:YR/EIY1o3mEFP/kZCD7iDMnLPlGyuU2Gb3HIcXnA98k=
 | 
					github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk=
 | 
				
			||||||
github.com/prometheus/common v0.63.0/go.mod h1:VVFF/fBIoToEnWRVkYoXEkq3R3paCoxG9PXP74SnV18=
 | 
					github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE=
 | 
				
			||||||
github.com/prometheus/procfs v0.16.0 h1:xh6oHhKwnOJKMYiYBDWmkHqQPyiY40sny36Cmx2bbsM=
 | 
					github.com/prometheus/common v0.65.0 h1:QDwzd+G1twt//Kwj/Ww6E9FQq1iVMmODnILtW1t2VzE=
 | 
				
			||||||
github.com/prometheus/procfs v0.16.0/go.mod h1:8veyXUu3nGP7oaCxhX6yeaM5u4stL2FeMXnCqhDthZg=
 | 
					github.com/prometheus/common v0.65.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
 | 
				
			||||||
 | 
					github.com/prometheus/otlptranslator v0.0.0-20250717125610-8549f4ab4f8f h1:QQB6SuvGZjK8kdc2YaLJpYhV8fxauOsjE6jgcL6YJ8Q=
 | 
				
			||||||
 | 
					github.com/prometheus/otlptranslator v0.0.0-20250717125610-8549f4ab4f8f/go.mod h1:P8AwMgdD7XEr6QRUJ2QWLpiAZTgTE2UYgjlu3svompI=
 | 
				
			||||||
 | 
					github.com/prometheus/procfs v0.17.0 h1:FuLQ+05u4ZI+SS/w9+BWEM2TXiHKsUQ9TADiRH7DuK0=
 | 
				
			||||||
 | 
					github.com/prometheus/procfs v0.17.0/go.mod h1:oPQLaDAMRbA+u8H5Pbfq+dl3VDAvHxMUOVhe0wYB2zw=
 | 
				
			||||||
github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
 | 
					github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
 | 
				
			||||||
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
 | 
					github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
 | 
				
			||||||
github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0=
 | 
					github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0=
 | 
				
			||||||
@@ -73,71 +95,102 @@ github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
 | 
				
			|||||||
github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
 | 
					github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
 | 
				
			||||||
github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=
 | 
					github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=
 | 
				
			||||||
github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I=
 | 
					github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I=
 | 
				
			||||||
 | 
					github.com/stoewer/go-strcase v1.3.1 h1:iS0MdW+kVTxgMoE1LAZyMiYJFKlOzLooE4MxjirtkAs=
 | 
				
			||||||
 | 
					github.com/stoewer/go-strcase v1.3.1/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo=
 | 
				
			||||||
 | 
					github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
 | 
				
			||||||
 | 
					github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
 | 
				
			||||||
 | 
					github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
 | 
				
			||||||
 | 
					github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
 | 
				
			||||||
 | 
					github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
 | 
				
			||||||
 | 
					github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
 | 
				
			||||||
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
 | 
					github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
 | 
				
			||||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
 | 
					github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
 | 
				
			||||||
github.com/swaggest/assertjson v1.9.0 h1:dKu0BfJkIxv/xe//mkCrK5yZbs79jL7OVf9Ija7o2xQ=
 | 
					github.com/swaggest/assertjson v1.9.0 h1:dKu0BfJkIxv/xe//mkCrK5yZbs79jL7OVf9Ija7o2xQ=
 | 
				
			||||||
github.com/swaggest/assertjson v1.9.0/go.mod h1:b+ZKX2VRiUjxfUIal0HDN85W0nHPAYUbYH5WkkSsFsU=
 | 
					github.com/swaggest/assertjson v1.9.0/go.mod h1:b+ZKX2VRiUjxfUIal0HDN85W0nHPAYUbYH5WkkSsFsU=
 | 
				
			||||||
github.com/swaggest/jsonschema-go v0.3.73 h1:gU1pBzF3pkZ1GDD3dRMdQoCjrA0sldJ+QcM7aSSPgvc=
 | 
					github.com/swaggest/jsonschema-go v0.3.78 h1:5+YFQrLxOR8z6CHvgtZc42WRy/Q9zRQQ4HoAxlinlHw=
 | 
				
			||||||
github.com/swaggest/jsonschema-go v0.3.73/go.mod h1:qp+Ym2DIXHlHzch3HKz50gPf2wJhKOrAB/VYqLS2oJU=
 | 
					github.com/swaggest/jsonschema-go v0.3.78/go.mod h1:4nniXBuE+FIGkOGuidjOINMH7OEqZK3HCSbfDuLRI0g=
 | 
				
			||||||
github.com/swaggest/refl v1.3.1 h1:XGplEkYftR7p9cz1lsiwXMM2yzmOymTE9vneVVpaOh4=
 | 
					github.com/swaggest/refl v1.4.0 h1:CftOSdTqRqs100xpFOT/Rifss5xBV/CT0S/FN60Xe9k=
 | 
				
			||||||
github.com/swaggest/refl v1.3.1/go.mod h1:4uUVFVfPJ0NSX9FPwMPspeHos9wPFlCMGoPRllUbpvA=
 | 
					github.com/swaggest/refl v1.4.0/go.mod h1:4uUVFVfPJ0NSX9FPwMPspeHos9wPFlCMGoPRllUbpvA=
 | 
				
			||||||
github.com/yudai/gojsondiff v1.0.0 h1:27cbfqXLVEJ1o8I6v3y9lg8Ydm53EKqHXAOMxEGlCOA=
 | 
					github.com/yudai/gojsondiff v1.0.0 h1:27cbfqXLVEJ1o8I6v3y9lg8Ydm53EKqHXAOMxEGlCOA=
 | 
				
			||||||
github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg=
 | 
					github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg=
 | 
				
			||||||
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M=
 | 
					github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3IfnEUduWvb9is428/nNb5L3U01M=
 | 
				
			||||||
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM=
 | 
					github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM=
 | 
				
			||||||
go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=
 | 
					go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=
 | 
				
			||||||
go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=
 | 
					go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=
 | 
				
			||||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 h1:x7wzEgXfnzJcHDwStJT+mxOz4etr2EcexjqhBvmoakw=
 | 
					go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.62.0 h1:rbRJ8BBoVMsQShESYZ0FkvcITu8X8QNwJogcLUmDNNw=
 | 
				
			||||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0/go.mod h1:rg+RlpR5dKwaS95IyyZqj5Wd4E13lk/msnTS0Xl9lJM=
 | 
					go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.62.0/go.mod h1:ru6KHrNtNHxM4nD/vd6QrLVWgKhxPYgblq4VAtNawTQ=
 | 
				
			||||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 h1:sbiXRNDSWJOTobXh5HyQKjq6wUC5tNybqjIqDpAY4CU=
 | 
					go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0 h1:Hf9xI/XLML9ElpiHVDNwvqI0hIFlzV8dgIr35kV1kRU=
 | 
				
			||||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0/go.mod h1:69uWxva0WgAA/4bu2Yy70SLDBwZXuQ6PbBpbsa5iZrQ=
 | 
					go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0/go.mod h1:NfchwuyNoMcZ5MLHwPrODwUF1HWCXWrL31s8gSAdIKY=
 | 
				
			||||||
go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ=
 | 
					go.opentelemetry.io/otel v1.37.0 h1:9zhNfelUvx0KBfu/gb+ZgeAfAgtWrfHJZcAqFC228wQ=
 | 
				
			||||||
go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y=
 | 
					go.opentelemetry.io/otel v1.37.0/go.mod h1:ehE/umFRLnuLa/vSccNq9oS1ErUlkkK71gMcN34UG8I=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.35.0 h1:QcFwRrZLc82r8wODjvyCbP7Ifp3UANaBSmhDSFjnqSc=
 | 
					go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.37.0 h1:zG8GlgXCJQd5BU98C0hZnBbElszTmUgCNCfYneaDL0A=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.35.0/go.mod h1:CXIWhUomyWBG/oY2/r/kLp6K/cmx9e/7DLpBuuGdLCA=
 | 
					go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.37.0/go.mod h1:hOfBCz8kv/wuq73Mx2H2QnWokh/kHZxkh6SNF2bdKtw=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0 h1:1fTNlAIJZGWLP5FVu0fikVry1IsiUnXjf7QFvoNN3Xw=
 | 
					go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.37.0 h1:Ahq7pZmv87yiyn3jeFz/LekZmPLLdKejuO3NcK9MssM=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.35.0/go.mod h1:zjPK58DtkqQFn+YUMbx0M2XV3QgKU0gS9LeGohREyK4=
 | 
					go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.37.0/go.mod h1:MJTqhM0im3mRLw1i8uGHnCvUEeS7VwRyxlLC78PA18M=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 h1:m639+BofXTvcY1q8CGs4ItwQarYtJPOWmVobfM1HpVI=
 | 
					go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.37.0 h1:EtFWSnwW9hGObjkIdmlnWSydO+Qs8OwzfzXLUPg4xOc=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0/go.mod h1:LjReUci/F4BUyv+y4dwnq3h/26iNOeC3wAIqgvTIZVo=
 | 
					go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.37.0/go.mod h1:QjUEoiGCPkvFZ/MjK6ZZfNOS6mfVEVKYE99dFhuN2LI=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/prometheus v0.57.0 h1:AHh/lAP1BHrY5gBwk8ncc25FXWm/gmmY3BX258z5nuk=
 | 
					go.opentelemetry.io/otel/exporters/prometheus v0.59.1 h1:HcpSkTkJbggT8bjYP+BjyqPWlD17BH9C5CYNKeDzmcA=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/prometheus v0.57.0/go.mod h1:QpFWz1QxqevfjwzYdbMb4Y1NnlJvqSGwyuU0B4iuc9c=
 | 
					go.opentelemetry.io/otel/exporters/prometheus v0.59.1/go.mod h1:0FJL+gjuUoM07xzik3KPBaN+nz/CoB15kV6WLMiXZag=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.35.0 h1:PB3Zrjs1sG1GBX51SXyTSoOTqcDglmsk7nT6tkKPb/k=
 | 
					go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.37.0 h1:6VjV6Et+1Hd2iLZEPtdV7vie80Yyqf7oikJLjQ/myi0=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.35.0/go.mod h1:U2R3XyVPzn0WX7wOIypPuptulsMcPDPs/oiSVOMVnHY=
 | 
					go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.37.0/go.mod h1:u8hcp8ji5gaM/RfcOo8z9NMnf1pVLfVY7lBY2VOGuUU=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.35.0 h1:T0Ec2E+3YZf5bgTNQVet8iTDW7oIk03tXHq+wkwIDnE=
 | 
					go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.37.0 h1:SNhVp/9q4Go/XHBkQ1/d5u9P/U+L1yaGPoi0x+mStaI=
 | 
				
			||||||
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.35.0/go.mod h1:30v2gqH+vYGJsesLWFov8u47EpYTcIQcBjKpI6pJThg=
 | 
					go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.37.0/go.mod h1:tx8OOlGH6R4kLV67YaYO44GFXloEjGPZuMjEkaaqIp4=
 | 
				
			||||||
go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M=
 | 
					go.opentelemetry.io/otel/metric v1.37.0 h1:mvwbQS5m0tbmqML4NqK+e3aDiO02vsf/WgbsdpcPoZE=
 | 
				
			||||||
go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE=
 | 
					go.opentelemetry.io/otel/metric v1.37.0/go.mod h1:04wGrZurHYKOc+RKeye86GwKiTb9FKm1WHtO+4EVr2E=
 | 
				
			||||||
go.opentelemetry.io/otel/sdk v1.35.0 h1:iPctf8iprVySXSKJffSS79eOjl9pvxV9ZqOWT0QejKY=
 | 
					go.opentelemetry.io/otel/sdk v1.37.0 h1:ItB0QUqnjesGRvNcmAcU0LyvkVyGJ2xftD29bWdDvKI=
 | 
				
			||||||
go.opentelemetry.io/otel/sdk v1.35.0/go.mod h1:+ga1bZliga3DxJ3CQGg3updiaAJoNECOgJREo9KHGQg=
 | 
					go.opentelemetry.io/otel/sdk v1.37.0/go.mod h1:VredYzxUvuo2q3WRcDnKDjbdvmO0sCzOvVAiY+yUkAg=
 | 
				
			||||||
go.opentelemetry.io/otel/sdk/metric v1.35.0 h1:1RriWBmCKgkeHEhM7a2uMjMUfP7MsOF5JpUCaEqEI9o=
 | 
					go.opentelemetry.io/otel/sdk/metric v1.37.0 h1:90lI228XrB9jCMuSdA0673aubgRobVZFhbjxHHspCPc=
 | 
				
			||||||
go.opentelemetry.io/otel/sdk/metric v1.35.0/go.mod h1:is6XYCUMpcKi+ZsOvfluY5YstFnhW0BidkR+gL+qN+w=
 | 
					go.opentelemetry.io/otel/sdk/metric v1.37.0/go.mod h1:cNen4ZWfiD37l5NhS+Keb5RXVWZWpRE+9WyVCpbo5ps=
 | 
				
			||||||
go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs=
 | 
					go.opentelemetry.io/otel/trace v1.37.0 h1:HLdcFNbRQBE2imdSEgm/kwqmQj1Or1l/7bW6mxVK7z4=
 | 
				
			||||||
go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc=
 | 
					go.opentelemetry.io/otel/trace v1.37.0/go.mod h1:TlgrlQ+PtQO5XFerSPUYG0JSgGyryXewPGyayAWSBS0=
 | 
				
			||||||
go.opentelemetry.io/proto/otlp v1.5.0 h1:xJvq7gMzB31/d406fB8U5CBdyQGw4P399D1aQWU/3i4=
 | 
					go.opentelemetry.io/proto/otlp v1.7.0 h1:jX1VolD6nHuFzOYso2E73H85i92Mv8JQYk0K9vz09os=
 | 
				
			||||||
go.opentelemetry.io/proto/otlp v1.5.0/go.mod h1:keN8WnHxOy8PG0rQZjJJ5A2ebUoafqWp0eVQ4yIXvJ4=
 | 
					go.opentelemetry.io/proto/otlp v1.7.0/go.mod h1:fSKjH6YJ7HDlwzltzyMj036AJ3ejJLCgCSHGj4efDDo=
 | 
				
			||||||
 | 
					go.opentelemetry.io/proto/otlp v1.7.1 h1:gTOMpGDb0WTBOP8JaO72iL3auEZhVmAQg4ipjOVAtj4=
 | 
				
			||||||
 | 
					go.opentelemetry.io/proto/otlp v1.7.1/go.mod h1:b2rVh6rfI/s2pHWNlB7ILJcRALpcNDzKhACevjI+ZnE=
 | 
				
			||||||
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
 | 
					go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
 | 
				
			||||||
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
 | 
					go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
 | 
				
			||||||
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
 | 
					golang.org/x/exp v0.0.0-20250718183923-645b1fa84792 h1:R9PFI6EUdfVKgwKjZef7QIwGcBKu86OEFpJ9nUEP2l4=
 | 
				
			||||||
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
 | 
					golang.org/x/exp v0.0.0-20250718183923-645b1fa84792/go.mod h1:A+z0yzpGtvnG90cToK5n2tu8UJVP2XUATh+r+sfOOOc=
 | 
				
			||||||
 | 
					golang.org/x/exp v0.0.0-20250813145105-42675adae3e6 h1:SbTAbRFnd5kjQXbczszQ0hdk3ctwYf3qBNH9jIsGclE=
 | 
				
			||||||
 | 
					golang.org/x/exp v0.0.0-20250813145105-42675adae3e6/go.mod h1:4QTo5u+SEIbbKW1RacMZq1YEfOBqeXa19JeshGi+zc4=
 | 
				
			||||||
 | 
					golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs=
 | 
				
			||||||
 | 
					golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8=
 | 
				
			||||||
 | 
					golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE=
 | 
				
			||||||
 | 
					golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg=
 | 
				
			||||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
					golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
				
			||||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
					golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
				
			||||||
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
					golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 | 
				
			||||||
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
 | 
					golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
 | 
				
			||||||
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
 | 
					golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
 | 
				
			||||||
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
 | 
					golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
 | 
				
			||||||
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
 | 
					golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
 | 
				
			||||||
 | 
					golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4=
 | 
				
			||||||
 | 
					golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU=
 | 
				
			||||||
 | 
					golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
 | 
				
			||||||
 | 
					golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
 | 
				
			||||||
golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U=
 | 
					golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U=
 | 
				
			||||||
golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
 | 
					golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
 | 
				
			||||||
google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463 h1:hE3bRWtU6uceqlh4fhrSnUyjKHMKB9KrTLLG+bc0ddM=
 | 
					google.golang.org/genproto/googleapis/api v0.0.0-20250721164621-a45f3dfb1074 h1:mVXdvnmR3S3BQOqHECm9NGMjYiRtEvDYcqAqedTXY6s=
 | 
				
			||||||
google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463/go.mod h1:U90ffi8eUL9MwPcrJylN5+Mk2v3vuPDptd5yyNUiRR8=
 | 
					google.golang.org/genproto/googleapis/api v0.0.0-20250721164621-a45f3dfb1074/go.mod h1:vYFwMYFbmA8vl6Z/krj/h7+U/AqpHknwJX4Uqgfyc7I=
 | 
				
			||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 h1:e0AIkUUhxyBKh6ssZNrAMeqhA7RKUj42346d1y02i2g=
 | 
					google.golang.org/genproto/googleapis/api v0.0.0-20250811230008-5f3141c8851a h1:DMCgtIAIQGZqJXMVzJF4MV8BlWoJh2ZuFiRdAleyr58=
 | 
				
			||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
 | 
					google.golang.org/genproto/googleapis/api v0.0.0-20250811230008-5f3141c8851a/go.mod h1:y2yVLIE/CSMCPXaHnSKXxu1spLPnglFLegmgdY23uuE=
 | 
				
			||||||
google.golang.org/grpc v1.71.0 h1:kF77BGdPTQ4/JZWMlb9VpJ5pa25aqvVqogsxNHHdeBg=
 | 
					google.golang.org/genproto/googleapis/rpc v0.0.0-20250721164621-a45f3dfb1074 h1:qJW29YvkiJmXOYMu5Tf8lyrTp3dOS+K4z6IixtLaCf8=
 | 
				
			||||||
google.golang.org/grpc v1.71.0/go.mod h1:H0GRtasmQOh9LkFoCPDu3ZrwUtD1YGE+b2vYBYd/8Ec=
 | 
					google.golang.org/genproto/googleapis/rpc v0.0.0-20250721164621-a45f3dfb1074/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
 | 
				
			||||||
 | 
					google.golang.org/genproto/googleapis/rpc v0.0.0-20250811230008-5f3141c8851a h1:tPE/Kp+x9dMSwUm/uM0JKK0IfdiJkwAbSMSeZBXXJXc=
 | 
				
			||||||
 | 
					google.golang.org/genproto/googleapis/rpc v0.0.0-20250811230008-5f3141c8851a/go.mod h1:gw1tLEfykwDz2ET4a12jcXt4couGAm7IwsVaTy0Sflo=
 | 
				
			||||||
 | 
					google.golang.org/grpc v1.73.0 h1:VIWSmpI2MegBtTuFt5/JWy2oXxtjJ/e89Z70ImfD2ok=
 | 
				
			||||||
 | 
					google.golang.org/grpc v1.73.0/go.mod h1:50sbHOUqWoCQGI8V2HQLJM0B+LMlIUjNSZmow7EVBQc=
 | 
				
			||||||
 | 
					google.golang.org/grpc v1.74.2 h1:WoosgB65DlWVC9FqI82dGsZhWFNBSLjQ84bjROOpMu4=
 | 
				
			||||||
 | 
					google.golang.org/grpc v1.74.2/go.mod h1:CtQ+BGjaAIXHs/5YS3i473GqwBBa1zGQNevxdeBEXrM=
 | 
				
			||||||
 | 
					google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 h1:F29+wU6Ee6qgu9TddPgooOdaqsxTMunOoj8KA5yuS5A=
 | 
				
			||||||
 | 
					google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1/go.mod h1:5KF+wpkbTSbGcR9zteSqZV6fqFOWBl4Yde8En8MryZA=
 | 
				
			||||||
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
 | 
					google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
 | 
				
			||||||
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
 | 
					google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
 | 
				
			||||||
 | 
					google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A=
 | 
				
			||||||
 | 
					google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
 | 
				
			||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
 | 
					gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
 | 
				
			||||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
 | 
					gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
 | 
				
			||||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
 | 
					gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
 | 
				
			||||||
 | 
					gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
 | 
				
			||||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
 | 
					gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
 | 
				
			||||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
 | 
					gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										61
									
								
								go.work.sum
									
									
									
									
									
								
							
							
						
						
									
										61
									
								
								go.work.sum
									
									
									
									
									
								
							@@ -28,6 +28,7 @@ cloud.google.com/go/clouddms v1.8.4/go.mod h1:RadeJ3KozRwy4K/gAs7W74ZU3GmGgVq5K8
 | 
				
			|||||||
cloud.google.com/go/cloudtasks v1.13.3/go.mod h1:f9XRvmuFTm3VhIKzkzLCPyINSU3rjjvFUsFVGR5wi24=
 | 
					cloud.google.com/go/cloudtasks v1.13.3/go.mod h1:f9XRvmuFTm3VhIKzkzLCPyINSU3rjjvFUsFVGR5wi24=
 | 
				
			||||||
cloud.google.com/go/compute v1.34.0/go.mod h1:zWZwtLwZQyonEvIQBuIa0WvraMYK69J5eDCOw9VZU4g=
 | 
					cloud.google.com/go/compute v1.34.0/go.mod h1:zWZwtLwZQyonEvIQBuIa0WvraMYK69J5eDCOw9VZU4g=
 | 
				
			||||||
cloud.google.com/go/compute/metadata v0.6.0/go.mod h1:FjyFAW1MW0C203CEOMDTu3Dk1FlqW3Rga40jzHL4hfg=
 | 
					cloud.google.com/go/compute/metadata v0.6.0/go.mod h1:FjyFAW1MW0C203CEOMDTu3Dk1FlqW3Rga40jzHL4hfg=
 | 
				
			||||||
 | 
					cloud.google.com/go/compute/metadata v0.7.0/go.mod h1:j5MvL9PprKL39t166CoB1uVHfQMs4tFQZZcKwksXUjo=
 | 
				
			||||||
cloud.google.com/go/contactcenterinsights v1.17.1/go.mod h1:n8OiNv7buLA2AkGVkfuvtW3HU13AdTmEwAlAu46bfxY=
 | 
					cloud.google.com/go/contactcenterinsights v1.17.1/go.mod h1:n8OiNv7buLA2AkGVkfuvtW3HU13AdTmEwAlAu46bfxY=
 | 
				
			||||||
cloud.google.com/go/container v1.42.2/go.mod h1:y71YW7uR5Ck+9Vsbst0AF2F3UMgqmsN4SP8JR9xEsR8=
 | 
					cloud.google.com/go/container v1.42.2/go.mod h1:y71YW7uR5Ck+9Vsbst0AF2F3UMgqmsN4SP8JR9xEsR8=
 | 
				
			||||||
cloud.google.com/go/containeranalysis v0.13.3/go.mod h1:0SYnagA1Ivb7qPqKNYPkCtphhkJn3IzgaSp3mj+9XAY=
 | 
					cloud.google.com/go/containeranalysis v0.13.3/go.mod h1:0SYnagA1Ivb7qPqKNYPkCtphhkJn3IzgaSp3mj+9XAY=
 | 
				
			||||||
@@ -119,34 +120,94 @@ cloud.google.com/go/webrisk v1.10.3/go.mod h1:rRAqCA5/EQOX8ZEEF4HMIrLHGTK/Y1hEQg
 | 
				
			|||||||
cloud.google.com/go/websecurityscanner v1.7.3/go.mod h1:gy0Kmct4GNLoCePWs9xkQym1D7D59ld5AjhXrjipxSs=
 | 
					cloud.google.com/go/websecurityscanner v1.7.3/go.mod h1:gy0Kmct4GNLoCePWs9xkQym1D7D59ld5AjhXrjipxSs=
 | 
				
			||||||
cloud.google.com/go/workflows v1.13.3/go.mod h1:Xi7wggEt/ljoEcyk+CB/Oa1AHBCk0T1f5UH/exBB5CE=
 | 
					cloud.google.com/go/workflows v1.13.3/go.mod h1:Xi7wggEt/ljoEcyk+CB/Oa1AHBCk0T1f5UH/exBB5CE=
 | 
				
			||||||
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0/go.mod h1:obipzmGjfSjam60XLwGfqUkJsfiheAl+TUjG+4yzyPM=
 | 
					github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0/go.mod h1:obipzmGjfSjam60XLwGfqUkJsfiheAl+TUjG+4yzyPM=
 | 
				
			||||||
 | 
					github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.27.0/go.mod h1:yAZHSGnqScoU556rBOVkwLze6WP5N+U11RHuWaGVxwY=
 | 
				
			||||||
 | 
					github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
 | 
				
			||||||
github.com/alecthomas/kingpin/v2 v2.4.0/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE=
 | 
					github.com/alecthomas/kingpin/v2 v2.4.0/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE=
 | 
				
			||||||
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE=
 | 
					github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE=
 | 
				
			||||||
 | 
					github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
 | 
				
			||||||
github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g=
 | 
					github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g=
 | 
				
			||||||
github.com/bufbuild/protovalidate-go v0.9.1/go.mod h1:5jptBxfvlY51RhX32zR6875JfPBRXUsQjyZjm/NqkLQ=
 | 
					github.com/bufbuild/protovalidate-go v0.9.1/go.mod h1:5jptBxfvlY51RhX32zR6875JfPBRXUsQjyZjm/NqkLQ=
 | 
				
			||||||
github.com/cncf/xds/go v0.0.0-20241223141626-cff3c89139a3/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8=
 | 
					github.com/cncf/xds/go v0.0.0-20241223141626-cff3c89139a3/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8=
 | 
				
			||||||
 | 
					github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8=
 | 
				
			||||||
 | 
					github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
 | 
				
			||||||
github.com/envoyproxy/go-control-plane v0.13.4/go.mod h1:kDfuBlDVsSj2MjrLEtRWtHlsWIFcGyB2RMO44Dc5GZA=
 | 
					github.com/envoyproxy/go-control-plane v0.13.4/go.mod h1:kDfuBlDVsSj2MjrLEtRWtHlsWIFcGyB2RMO44Dc5GZA=
 | 
				
			||||||
github.com/envoyproxy/go-control-plane/envoy v1.32.4/go.mod h1:Gzjc5k8JcJswLjAx1Zm+wSYE20UrLtt7JZMWiWQXQEw=
 | 
					github.com/envoyproxy/go-control-plane/envoy v1.32.4/go.mod h1:Gzjc5k8JcJswLjAx1Zm+wSYE20UrLtt7JZMWiWQXQEw=
 | 
				
			||||||
github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4=
 | 
					github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4=
 | 
				
			||||||
github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU=
 | 
					github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU=
 | 
				
			||||||
 | 
					github.com/go-jose/go-jose/v4 v4.0.5/go.mod h1:s3P1lRrkT8igV8D9OjyL4WRyHvjB6a4JSllnOrmmBOA=
 | 
				
			||||||
github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
 | 
					github.com/golang/glog v1.2.4/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
 | 
				
			||||||
 | 
					github.com/golang/glog v1.2.5/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
 | 
				
			||||||
 | 
					github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
 | 
				
			||||||
github.com/google/cel-go v0.23.0/go.mod h1:52Pb6QsDbC5kvgxvZhiL9QX1oZEkcUF/ZqaPx1J5Wwo=
 | 
					github.com/google/cel-go v0.23.0/go.mod h1:52Pb6QsDbC5kvgxvZhiL9QX1oZEkcUF/ZqaPx1J5Wwo=
 | 
				
			||||||
 | 
					github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 | 
				
			||||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
 | 
					github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
 | 
				
			||||||
 | 
					github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
 | 
				
			||||||
 | 
					github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
 | 
				
			||||||
 | 
					github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
 | 
				
			||||||
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
 | 
					github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
 | 
				
			||||||
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
 | 
					github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
 | 
				
			||||||
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
 | 
					github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
 | 
				
			||||||
 | 
					github.com/lyft/protoc-gen-star/v2 v2.0.4-0.20230330145011-496ad1ac90a4/go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLOSpEk//mLlc+axEk=
 | 
				
			||||||
 | 
					github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
 | 
				
			||||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
 | 
					github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
 | 
				
			||||||
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
 | 
					github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
 | 
				
			||||||
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
 | 
					github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
 | 
				
			||||||
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
 | 
					github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
 | 
				
			||||||
 | 
					github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
 | 
				
			||||||
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8=
 | 
					github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8=
 | 
				
			||||||
 | 
					github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is=
 | 
				
			||||||
 | 
					github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
 | 
				
			||||||
 | 
					github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
 | 
				
			||||||
 | 
					github.com/spf13/afero v1.10.0/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ=
 | 
				
			||||||
 | 
					github.com/spiffe/go-spiffe/v2 v2.5.0/go.mod h1:P+NxobPc6wXhVtINNtFjNWGBTreew1GBUCwT2wPmb7g=
 | 
				
			||||||
github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo=
 | 
					github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo=
 | 
				
			||||||
 | 
					github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
 | 
				
			||||||
 | 
					github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
 | 
				
			||||||
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
 | 
					github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
 | 
				
			||||||
 | 
					github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
 | 
				
			||||||
 | 
					github.com/zeebo/errs v1.4.0/go.mod h1:sgbWHsvVuTPHcqJJGQ1WhI5KbWlHYz+2+2C/LSEtCw4=
 | 
				
			||||||
go.opentelemetry.io/contrib/detectors/gcp v1.34.0/go.mod h1:cV4BMFcscUR/ckqLkbfQmF0PRsq8w/lMGzdbCSveBHo=
 | 
					go.opentelemetry.io/contrib/detectors/gcp v1.34.0/go.mod h1:cV4BMFcscUR/ckqLkbfQmF0PRsq8w/lMGzdbCSveBHo=
 | 
				
			||||||
 | 
					go.opentelemetry.io/contrib/detectors/gcp v1.36.0/go.mod h1:IbBN8uAIIx734PTonTPxAxnjc2pQTxWNkwfstZ+6H2k=
 | 
				
			||||||
 | 
					go.opentelemetry.io/otel v1.36.0/go.mod h1:/TcFMXYjyRNh8khOAO9ybYkqaDBb/70aVwkNML4pP8E=
 | 
				
			||||||
 | 
					go.opentelemetry.io/otel/metric v1.36.0/go.mod h1:zC7Ks+yeyJt4xig9DEw9kuUFe5C3zLbVjV2PzT6qzbs=
 | 
				
			||||||
 | 
					go.opentelemetry.io/otel/sdk v1.36.0/go.mod h1:+lC+mTgD+MUWfjJubi2vvXWcVxyr9rmlshZni72pXeY=
 | 
				
			||||||
 | 
					go.opentelemetry.io/otel/sdk/metric v1.36.0/go.mod h1:qTNOhFDfKRwX0yXOqJYegL5WRaW376QbB7P4Pb0qva4=
 | 
				
			||||||
 | 
					go.opentelemetry.io/otel/trace v1.36.0/go.mod h1:gQ+OnDZzrybY4k4seLzPAWNwVBBVlF2szhehOBB/tGA=
 | 
				
			||||||
golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
 | 
					golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
 | 
				
			||||||
 | 
					golang.org/x/crypto v0.38.0/go.mod h1:MvrbAqul58NNYPKnOra203SB9vpuZW0e+RRZV+Ggqjw=
 | 
				
			||||||
 | 
					golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc=
 | 
				
			||||||
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8/go.mod h1:CQ1k9gNrJ50XIzaKCRR2hssIjF07kZFEiieALBM/ARQ=
 | 
					golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8/go.mod h1:CQ1k9gNrJ50XIzaKCRR2hssIjF07kZFEiieALBM/ARQ=
 | 
				
			||||||
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
 | 
					golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
 | 
				
			||||||
 | 
					golang.org/x/mod v0.26.0/go.mod h1:/j6NAhSk8iQ723BGAUyoAcn7SlD7s15Dp9Nd/SfeaFQ=
 | 
				
			||||||
 | 
					golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc=
 | 
				
			||||||
 | 
					golang.org/x/net v0.37.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
 | 
				
			||||||
 | 
					golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds=
 | 
				
			||||||
golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
 | 
					golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
 | 
				
			||||||
 | 
					golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU=
 | 
				
			||||||
golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
 | 
					golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
 | 
				
			||||||
 | 
					golang.org/x/sync v0.14.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
 | 
				
			||||||
 | 
					golang.org/x/sync v0.15.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
 | 
				
			||||||
 | 
					golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
 | 
				
			||||||
 | 
					golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
 | 
				
			||||||
 | 
					golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
 | 
				
			||||||
 | 
					golang.org/x/telemetry v0.0.0-20250807160809-1a19826ec488/go.mod h1:fGb/2+tgXXjhjHsTNdVEEMZNWA0quBnfrO+AfoDSAKw=
 | 
				
			||||||
golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
 | 
					golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
 | 
				
			||||||
 | 
					golang.org/x/term v0.34.0/go.mod h1:5jC53AEywhIVebHgPVeg0mj8OD3VO9OzclacVrqpaAw=
 | 
				
			||||||
 | 
					golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
 | 
				
			||||||
 | 
					golang.org/x/text v0.25.0/go.mod h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA=
 | 
				
			||||||
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
 | 
					golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
 | 
				
			||||||
 | 
					golang.org/x/tools v0.35.0/go.mod h1:NKdj5HkL/73byiZSJjqJgKn3ep7KjFkBOkR/Hps3VPw=
 | 
				
			||||||
 | 
					golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s=
 | 
				
			||||||
 | 
					golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY=
 | 
				
			||||||
 | 
					golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated/go.mod h1:RVAQXBGNv1ib0J382/DPCRS/BPnsGebyM1Gj5VSDpG8=
 | 
				
			||||||
 | 
					golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 | 
				
			||||||
 | 
					google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a/go.mod h1:a77HrdMjoeKbnd2jmgcWdaS++ZLZAEq3orIOAEIKiVw=
 | 
				
			||||||
 | 
					google.golang.org/genproto/googleapis/api v0.0.0-20250728155136-f173205681a0/go.mod h1:8ytArBbtOy2xfht+y2fqKd5DRDJRUQhqbyEnQ4bDChs=
 | 
				
			||||||
 | 
					google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
 | 
				
			||||||
 | 
					google.golang.org/genproto/googleapis/rpc v0.0.0-20250728155136-f173205681a0/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
 | 
				
			||||||
 | 
					google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
 | 
				
			||||||
 | 
					google.golang.org/grpc v1.71.0/go.mod h1:H0GRtasmQOh9LkFoCPDu3ZrwUtD1YGE+b2vYBYd/8Ec=
 | 
				
			||||||
 | 
					google.golang.org/grpc/examples v0.0.0-20230224211313-3775f633ce20/go.mod h1:Nr5H8+MlGWr5+xX/STzdoEqJrO+YteqFbMyCsrb6mH0=
 | 
				
			||||||
 | 
					google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
 | 
				
			||||||
 | 
					google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
 | 
				
			||||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
 | 
					gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										101
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										101
									
								
								main.go
									
									
									
									
									
								
							@@ -15,20 +15,39 @@ import (
 | 
				
			|||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
	"os"
 | 
						"os"
 | 
				
			||||||
	"os/signal"
 | 
						"os/signal"
 | 
				
			||||||
 | 
						"sync"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"github.com/rs/zerolog/log"
 | 
						"github.com/rs/zerolog"
 | 
				
			||||||
 | 
						"go.opentelemetry.io/otel/attribute"
 | 
				
			||||||
 | 
						"go.opentelemetry.io/otel/codes"
 | 
				
			||||||
 | 
						"go.opentelemetry.io/otel/trace"
 | 
				
			||||||
	"golang.org/x/sys/unix"
 | 
						"golang.org/x/sys/unix"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"gitea.libretechconsulting.com/rmcguire/go-app/pkg/app"
 | 
						"gitea.libretechconsulting.com/rmcguire/go-app/pkg/app"
 | 
				
			||||||
	optsgrpc "gitea.libretechconsulting.com/rmcguire/go-app/pkg/srv/grpc/opts"
 | 
						"gitea.libretechconsulting.com/rmcguire/go-app/pkg/otel"
 | 
				
			||||||
	optshttp "gitea.libretechconsulting.com/rmcguire/go-app/pkg/srv/http/opts"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/config"
 | 
						"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/config"
 | 
				
			||||||
	"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/demogrpc"
 | 
						"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/demo"
 | 
				
			||||||
	"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/demohttp"
 | 
						"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/service"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var flagSchema bool
 | 
					const (
 | 
				
			||||||
 | 
						terminationGracePeriod = 30 * time.Second
 | 
				
			||||||
 | 
						appName                = "demo-app"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var (
 | 
				
			||||||
 | 
						// TODO: Register your service.AppService implementers here
 | 
				
			||||||
 | 
						// This should be the only change necessary here
 | 
				
			||||||
 | 
						// NOTE: At least one service needs to add a dial option
 | 
				
			||||||
 | 
						// for transport credentials, otherwise you will have to do it here
 | 
				
			||||||
 | 
						appServices = []service.AppService{
 | 
				
			||||||
 | 
							&demo.DemoService{},
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						flagSchema bool
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func main() {
 | 
					func main() {
 | 
				
			||||||
	ctx, cncl := signal.NotifyContext(context.Background(), os.Interrupt, unix.SIGTERM)
 | 
						ctx, cncl := signal.NotifyContext(context.Background(), os.Interrupt, unix.SIGTERM)
 | 
				
			||||||
@@ -37,7 +56,7 @@ func main() {
 | 
				
			|||||||
	// Load configuration and setup logging. The go-app framework
 | 
						// Load configuration and setup logging. The go-app framework
 | 
				
			||||||
	// will handle loading config and environment into our demo
 | 
						// will handle loading config and environment into our demo
 | 
				
			||||||
	// app config struct which embeds app.AooConfig
 | 
						// app config struct which embeds app.AooConfig
 | 
				
			||||||
	ctx, demoApp := app.MustLoadConfigInto(ctx, &config.DemoConfig{})
 | 
						ctx, serviceConfig := app.MustLoadConfigInto(ctx, &config.ServiceConfig{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Print schema if that's all we have to do
 | 
						// Print schema if that's all we have to do
 | 
				
			||||||
	if flagSchema {
 | 
						if flagSchema {
 | 
				
			||||||
@@ -45,32 +64,64 @@ func main() {
 | 
				
			|||||||
		os.Exit(1)
 | 
							os.Exit(1)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	log.Debug().Any("demoAppMergedConfig", demoApp).Msg("demo app config prepared")
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	// Prepare servers
 | 
					 | 
				
			||||||
	demoHTTP := demohttp.NewDemoHTTPServer(ctx, demoApp)
 | 
					 | 
				
			||||||
	demoGRPC := demogrpc.NewDemoGRPCServer(ctx, demoApp)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	// Prepare app
 | 
						// Prepare app
 | 
				
			||||||
	app := &app.App{
 | 
						app := &app.App{
 | 
				
			||||||
		AppContext: ctx,
 | 
							AppContext: ctx,
 | 
				
			||||||
		GRPC: &optsgrpc.AppGRPC{
 | 
					 | 
				
			||||||
			Services:     demoGRPC.GetServices(),
 | 
					 | 
				
			||||||
			GRPCDialOpts: demoGRPC.GetDialOpts(),
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
		HTTP: &optshttp.AppHTTP{
 | 
					 | 
				
			||||||
			Ctx:          ctx,
 | 
					 | 
				
			||||||
			HealthChecks: demoHTTP.GetHealthCheckFuncs(),
 | 
					 | 
				
			||||||
			Funcs:        demoHTTP.GetHandleFuncs(),
 | 
					 | 
				
			||||||
		},
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						app.InitOTEL()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						tracer := otel.GetTracer(ctx, appName)
 | 
				
			||||||
 | 
						ctx, span := tracer.Start(ctx, appName+".startup", trace.WithAttributes(
 | 
				
			||||||
 | 
							attribute.Int("appServices", len(appServices)),
 | 
				
			||||||
 | 
						))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						log := zerolog.Ctx(ctx)
 | 
				
			||||||
 | 
						log.Debug().Any("mergedConfig", serviceConfig).Msg("App configuration prepared")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Prepare services
 | 
				
			||||||
 | 
						var err error
 | 
				
			||||||
 | 
						sdFuncs := make([]service.ShutdownFunc, len(appServices))
 | 
				
			||||||
 | 
						for i, svc := range appServices {
 | 
				
			||||||
 | 
							sdFuncs[i], err = svc.Init(ctx, serviceConfig)
 | 
				
			||||||
 | 
							if err != nil {
 | 
				
			||||||
 | 
								span.RecordError(err)
 | 
				
			||||||
 | 
								span.SetStatus(codes.Error, err.Error())
 | 
				
			||||||
 | 
								log.Fatal().Err(err).Send()
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						span.AddEvent("app services initialized")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Merge all service implementations and add to app
 | 
				
			||||||
 | 
						grpcSvcs, httpSvcs := service.MergeServices(ctx, appServices...)
 | 
				
			||||||
 | 
						app.GRPC = grpcSvcs
 | 
				
			||||||
 | 
						app.HTTP = httpSvcs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Launch app
 | 
						// Launch app
 | 
				
			||||||
	app.MustRun()
 | 
						app.MustRun()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Wait for app to complete
 | 
						span.AddEvent("app started")
 | 
				
			||||||
	// Perform any extra shutdown here
 | 
						span.SetStatus(codes.Ok, "")
 | 
				
			||||||
 | 
						span.End()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Wait for app to complete and then perform internal shutdown
 | 
				
			||||||
	<-app.Done()
 | 
						<-app.Done()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						log.Info().Int("numServices", len(appServices)).Msg("shutting down app services")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						sdCtx, cncl := context.WithTimeout(context.Background(), terminationGracePeriod)
 | 
				
			||||||
 | 
						defer cncl()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Call registered shutdown funcs from all services
 | 
				
			||||||
 | 
						var sdWg sync.WaitGroup
 | 
				
			||||||
 | 
						for _, sdFunc := range sdFuncs {
 | 
				
			||||||
 | 
							sdWg.Add(1)
 | 
				
			||||||
 | 
							go func() {
 | 
				
			||||||
 | 
								defer sdWg.Done()
 | 
				
			||||||
 | 
								svcName, err := sdFunc(sdCtx)
 | 
				
			||||||
 | 
								log.Err(err).Str("service", svcName).Msg("terminated")
 | 
				
			||||||
 | 
							}()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						sdWg.Wait()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// flag.Parse will be called by go-app
 | 
					// flag.Parse will be called by go-app
 | 
				
			||||||
@@ -79,7 +130,7 @@ func init() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func printSchema() {
 | 
					func printSchema() {
 | 
				
			||||||
	bytes, err := app.CustomSchema(&config.DemoConfig{})
 | 
						bytes, err := app.CustomSchema(&config.ServiceConfig{})
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		panic(err)
 | 
							panic(err)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,13 +1,14 @@
 | 
				
			|||||||
// This serves as a reference sample configuration
 | 
					// Package config contains ServiceConfig, which is intended
 | 
				
			||||||
// to show how to merge custom config fields into
 | 
					// to extend go-app/pkg/config.AppConfig. Add any custom fields
 | 
				
			||||||
// go-app configuration
 | 
					// here, and it will automatically be handled by go-app, including
 | 
				
			||||||
 | 
					// overrides by environment, and json schema generation
 | 
				
			||||||
package config
 | 
					package config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"gitea.libretechconsulting.com/rmcguire/go-app/pkg/config"
 | 
						"gitea.libretechconsulting.com/rmcguire/go-app/pkg/config"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type DemoConfig struct {
 | 
					type ServiceConfig struct {
 | 
				
			||||||
	Timezone string    `yaml:"timezone" json:"timezone,omitempty" default:"UTC"`
 | 
						Timezone string    `yaml:"timezone" json:"timezone,omitempty" default:"UTC"`
 | 
				
			||||||
	Opts     *DemoOpts `yaml:"opts" json:"opts,omitempty"`
 | 
						Opts     *DemoOpts `yaml:"opts" json:"opts,omitempty"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										54
									
								
								pkg/demo/demo.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								pkg/demo/demo.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,54 @@
 | 
				
			|||||||
 | 
					// Package demo provides a reference implementation
 | 
				
			||||||
 | 
					// of service.AppService. It packages out the GRPC and HTTP
 | 
				
			||||||
 | 
					// functionality, for the sake of structure.
 | 
				
			||||||
 | 
					package demo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						optsgrpc "gitea.libretechconsulting.com/rmcguire/go-app/pkg/srv/grpc/opts"
 | 
				
			||||||
 | 
						optshttp "gitea.libretechconsulting.com/rmcguire/go-app/pkg/srv/http/opts"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/config"
 | 
				
			||||||
 | 
						"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/demo/demogrpc"
 | 
				
			||||||
 | 
						"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/demo/demohttp"
 | 
				
			||||||
 | 
						"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/service"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type DemoService struct {
 | 
				
			||||||
 | 
						ctx    context.Context
 | 
				
			||||||
 | 
						config *config.ServiceConfig
 | 
				
			||||||
 | 
						http   *demohttp.DemoHTTPServer
 | 
				
			||||||
 | 
						grpc   *demogrpc.DemoGRPCServer
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (d *DemoService) Init(ctx context.Context, config *config.ServiceConfig,
 | 
				
			||||||
 | 
					) (service.ShutdownFunc, error) {
 | 
				
			||||||
 | 
						d.config = config
 | 
				
			||||||
 | 
						d.ctx = ctx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// These don't HAVE to be split into separate packages
 | 
				
			||||||
 | 
						// This is, after all, a demo app. Just implement the interface.
 | 
				
			||||||
 | 
						d.http = demohttp.NewDemoHTTPServer(ctx, config)
 | 
				
			||||||
 | 
						d.grpc = demogrpc.NewDemoGRPCServer(ctx, config)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// TODO: This should actually do shutdown stuff
 | 
				
			||||||
 | 
						return func(_ context.Context) (string, error) {
 | 
				
			||||||
 | 
							return "DemoService", nil
 | 
				
			||||||
 | 
						}, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (d *DemoService) GetGRPC() *optsgrpc.AppGRPC {
 | 
				
			||||||
 | 
						return &optsgrpc.AppGRPC{
 | 
				
			||||||
 | 
							Services:     d.grpc.GetServices(),
 | 
				
			||||||
 | 
							GRPCDialOpts: d.grpc.GetDialOpts(),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (d *DemoService) GetHTTP() *optshttp.AppHTTP {
 | 
				
			||||||
 | 
						return &optshttp.AppHTTP{
 | 
				
			||||||
 | 
							Ctx:          d.ctx,
 | 
				
			||||||
 | 
							Funcs:        d.http.GetHandleFuncs(),
 | 
				
			||||||
 | 
							HealthChecks: d.http.GetHealthCheckFuncs(),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -27,12 +27,12 @@ const (
 | 
				
			|||||||
type DemoGRPCServer struct {
 | 
					type DemoGRPCServer struct {
 | 
				
			||||||
	tracer trace.Tracer
 | 
						tracer trace.Tracer
 | 
				
			||||||
	ctx    context.Context
 | 
						ctx    context.Context
 | 
				
			||||||
	cfg    *config.DemoConfig
 | 
						cfg    *config.ServiceConfig
 | 
				
			||||||
	client *resty.Client
 | 
						client *resty.Client
 | 
				
			||||||
	pb.UnimplementedDemoAppServiceServer
 | 
						pb.UnimplementedDemoAppServiceServer
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func NewDemoGRPCServer(ctx context.Context, cfg *config.DemoConfig) *DemoGRPCServer {
 | 
					func NewDemoGRPCServer(ctx context.Context, cfg *config.ServiceConfig) *DemoGRPCServer {
 | 
				
			||||||
	if cfg.Opts == nil {
 | 
						if cfg.Opts == nil {
 | 
				
			||||||
		cfg.Opts = &config.DemoOpts{}
 | 
							cfg.Opts = &config.DemoOpts{}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -11,10 +11,10 @@ import (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
type DemoHTTPServer struct {
 | 
					type DemoHTTPServer struct {
 | 
				
			||||||
	ctx context.Context
 | 
						ctx context.Context
 | 
				
			||||||
	cfg *config.DemoConfig
 | 
						cfg *config.ServiceConfig
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func NewDemoHTTPServer(ctx context.Context, cfg *config.DemoConfig) *DemoHTTPServer {
 | 
					func NewDemoHTTPServer(ctx context.Context, cfg *config.ServiceConfig) *DemoHTTPServer {
 | 
				
			||||||
	return &DemoHTTPServer{
 | 
						return &DemoHTTPServer{
 | 
				
			||||||
		ctx: ctx,
 | 
							ctx: ctx,
 | 
				
			||||||
		cfg: cfg,
 | 
							cfg: cfg,
 | 
				
			||||||
							
								
								
									
										63
									
								
								pkg/service/service.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								pkg/service/service.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
				
			|||||||
 | 
					// Package service defines generics around implementation of
 | 
				
			||||||
 | 
					// a new service that provides configuration for go-app
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The interface is meant to make the template more clear to implement
 | 
				
			||||||
 | 
					// without unnecessary changes in main.go
 | 
				
			||||||
 | 
					package service
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						"gitea.libretechconsulting.com/rmcguire/go-server-with-otel/pkg/config"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						optsgrpc "gitea.libretechconsulting.com/rmcguire/go-app/pkg/srv/grpc/opts"
 | 
				
			||||||
 | 
						optshttp "gitea.libretechconsulting.com/rmcguire/go-app/pkg/srv/http/opts"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type ShutdownFunc func(ctx context.Context) (string, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type AppService interface {
 | 
				
			||||||
 | 
						Init(ctx context.Context, config *config.ServiceConfig) (ShutdownFunc, error)
 | 
				
			||||||
 | 
						GetGRPC() *optsgrpc.AppGRPC
 | 
				
			||||||
 | 
						GetHTTP() *optshttp.AppHTTP
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// MergeServices is used if multiple services are served by this server
 | 
				
			||||||
 | 
					// with their own distinct packages and configuration
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// You should be overriding the done chan, listener, or any other
 | 
				
			||||||
 | 
					// configuration used by the SERVER rather than the individual services.
 | 
				
			||||||
 | 
					func MergeServices(ctx context.Context, appServices ...AppService) (*optsgrpc.AppGRPC, *optshttp.AppHTTP) {
 | 
				
			||||||
 | 
						mergedGRPC := &optsgrpc.AppGRPC{}
 | 
				
			||||||
 | 
						for _, svc := range appServices {
 | 
				
			||||||
 | 
							mergedGRPC = mergeGRPC(mergedGRPC, svc.GetGRPC())
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						mergedHTTP := &optshttp.AppHTTP{}
 | 
				
			||||||
 | 
						for _, svc := range appServices {
 | 
				
			||||||
 | 
							mergedHTTP = mergeHTTP(mergedHTTP, svc.GetHTTP())
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						mergedHTTP.Ctx = ctx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return mergedGRPC, mergedHTTP
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func mergeHTTP(a *optshttp.AppHTTP, b *optshttp.AppHTTP) *optshttp.AppHTTP {
 | 
				
			||||||
 | 
						return &optshttp.AppHTTP{
 | 
				
			||||||
 | 
							Funcs:        append(a.Funcs, b.Funcs...),
 | 
				
			||||||
 | 
							Middleware:   append(a.Middleware, b.Middleware...),
 | 
				
			||||||
 | 
							Handlers:     append(a.Handlers, b.Handlers...),
 | 
				
			||||||
 | 
							HealthChecks: append(a.HealthChecks, b.HealthChecks...),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func mergeGRPC(a *optsgrpc.AppGRPC, b *optsgrpc.AppGRPC) *optsgrpc.AppGRPC {
 | 
				
			||||||
 | 
						return &optsgrpc.AppGRPC{
 | 
				
			||||||
 | 
							Services:           append(a.Services, b.Services...),
 | 
				
			||||||
 | 
							GRPCOpts:           append(a.GRPCOpts, b.GRPCOpts...),
 | 
				
			||||||
 | 
							UnaryInterceptors:  append(a.UnaryInterceptors, b.UnaryInterceptors...),
 | 
				
			||||||
 | 
							StreamInterceptors: append(a.StreamInterceptors, b.StreamInterceptors...),
 | 
				
			||||||
 | 
							GRPCDialOpts:       append(a.GRPCDialOpts, b.GRPCDialOpts...),
 | 
				
			||||||
 | 
							GRPCGatewayOpts:    append(a.GRPCGatewayOpts, b.GRPCGatewayOpts...),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
syntax = "proto3";
 | 
					syntax = "proto3";
 | 
				
			||||||
package demo.app.v1alpha1;
 | 
					package demo.app.v1alpha1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import "buf/validate/validate.proto";
 | 
				
			||||||
import "google/api/annotations.proto";
 | 
					import "google/api/annotations.proto";
 | 
				
			||||||
import "google/protobuf/timestamp.proto";
 | 
					import "google/protobuf/timestamp.proto";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -9,7 +10,7 @@ option go_package = "gitea.libretechconsulting.com/rmcguire/go-server-with-otel/
 | 
				
			|||||||
// Options for random fact, in this case
 | 
					// Options for random fact, in this case
 | 
				
			||||||
// just a language
 | 
					// just a language
 | 
				
			||||||
message GetDemoRequest {
 | 
					message GetDemoRequest {
 | 
				
			||||||
  optional string language = 1;
 | 
					  optional string language = 1 [(buf.validate.field).string.min_len = 2];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Returns a randome fact, because this is a demo app
 | 
					// Returns a randome fact, because this is a demo app
 | 
				
			||||||
@@ -18,7 +19,7 @@ message GetDemoResponse {
 | 
				
			|||||||
  google.protobuf.Timestamp timestamp = 1;
 | 
					  google.protobuf.Timestamp timestamp = 1;
 | 
				
			||||||
  string fact = 2;
 | 
					  string fact = 2;
 | 
				
			||||||
  string source = 3;
 | 
					  string source = 3;
 | 
				
			||||||
  string language = 4;
 | 
					  string language = 4 [(buf.validate.field).string.min_len = 2];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
service DemoAppService {
 | 
					service DemoAppService {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,22 +0,0 @@
 | 
				
			|||||||
# Google API Proto
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
These are required for grpc-gateway. Ideally these are either
 | 
					 | 
				
			||||||
added to a git submodule, retrieved from a Makefile, downloaded by
 | 
					 | 
				
			||||||
buf, or retrieved by a CI job.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
**These are not guaranteed to be up to date**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Repo and Files
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
These come from the following repo, and are required for
 | 
					 | 
				
			||||||
grpc gateway [per their documentation]()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Repo: [googleapis git repo](https://github.com/googleapis/googleapis)
 | 
					 | 
				
			||||||
* Docs: [grpc-gateay docs](https://github.com/grpc-ecosystem/grpc-gateway?tab=readme-ov-file#2-with-custom-annotations)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
### Files
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- [annotations.proto](https://raw.githubusercontent.com/googleapis/googleapis/refs/heads/master/google/api/annotations.proto)
 | 
					 | 
				
			||||||
- [field_behavior.proto](https://github.com/googleapis/googleapis/raw/refs/heads/master/google/api/field_behavior.proto)
 | 
					 | 
				
			||||||
- [http.proto](https://github.com/googleapis/googleapis/raw/refs/heads/master/google/api/http.proto)
 | 
					 | 
				
			||||||
- [httpbody.proto](https://github.com/googleapis/googleapis/raw/refs/heads/master/google/api/httpbody.proto)
 | 
					 | 
				
			||||||
@@ -1,31 +0,0 @@
 | 
				
			|||||||
// Copyright 2025 Google LLC
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
// you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
// You may obtain a copy of the License at
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
// distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
// See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
// limitations under the License.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
syntax = "proto3";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package google.api;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import "google/api/http.proto";
 | 
					 | 
				
			||||||
import "google/protobuf/descriptor.proto";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
 | 
					 | 
				
			||||||
option java_multiple_files = true;
 | 
					 | 
				
			||||||
option java_outer_classname = "AnnotationsProto";
 | 
					 | 
				
			||||||
option java_package = "com.google.api";
 | 
					 | 
				
			||||||
option objc_class_prefix = "GAPI";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
extend google.protobuf.MethodOptions {
 | 
					 | 
				
			||||||
  // See `HttpRule`.
 | 
					 | 
				
			||||||
  HttpRule http = 72295728;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,104 +0,0 @@
 | 
				
			|||||||
// Copyright 2025 Google LLC
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
// you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
// You may obtain a copy of the License at
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
// distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
// See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
// limitations under the License.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
syntax = "proto3";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package google.api;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import "google/protobuf/descriptor.proto";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
 | 
					 | 
				
			||||||
option java_multiple_files = true;
 | 
					 | 
				
			||||||
option java_outer_classname = "FieldBehaviorProto";
 | 
					 | 
				
			||||||
option java_package = "com.google.api";
 | 
					 | 
				
			||||||
option objc_class_prefix = "GAPI";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
extend google.protobuf.FieldOptions {
 | 
					 | 
				
			||||||
  // A designation of a specific field behavior (required, output only, etc.)
 | 
					 | 
				
			||||||
  // in protobuf messages.
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  // Examples:
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  //   string name = 1 [(google.api.field_behavior) = REQUIRED];
 | 
					 | 
				
			||||||
  //   State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
 | 
					 | 
				
			||||||
  //   google.protobuf.Duration ttl = 1
 | 
					 | 
				
			||||||
  //     [(google.api.field_behavior) = INPUT_ONLY];
 | 
					 | 
				
			||||||
  //   google.protobuf.Timestamp expire_time = 1
 | 
					 | 
				
			||||||
  //     [(google.api.field_behavior) = OUTPUT_ONLY,
 | 
					 | 
				
			||||||
  //      (google.api.field_behavior) = IMMUTABLE];
 | 
					 | 
				
			||||||
  repeated google.api.FieldBehavior field_behavior = 1052 [packed = false];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// An indicator of the behavior of a given field (for example, that a field
 | 
					 | 
				
			||||||
// is required in requests, or given as output but ignored as input).
 | 
					 | 
				
			||||||
// This **does not** change the behavior in protocol buffers itself; it only
 | 
					 | 
				
			||||||
// denotes the behavior and may affect how API tooling handles the field.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Note: This enum **may** receive new values in the future.
 | 
					 | 
				
			||||||
enum FieldBehavior {
 | 
					 | 
				
			||||||
  // Conventional default for enums. Do not use this.
 | 
					 | 
				
			||||||
  FIELD_BEHAVIOR_UNSPECIFIED = 0;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Specifically denotes a field as optional.
 | 
					 | 
				
			||||||
  // While all fields in protocol buffers are optional, this may be specified
 | 
					 | 
				
			||||||
  // for emphasis if appropriate.
 | 
					 | 
				
			||||||
  OPTIONAL = 1;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Denotes a field as required.
 | 
					 | 
				
			||||||
  // This indicates that the field **must** be provided as part of the request,
 | 
					 | 
				
			||||||
  // and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
 | 
					 | 
				
			||||||
  REQUIRED = 2;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Denotes a field as output only.
 | 
					 | 
				
			||||||
  // This indicates that the field is provided in responses, but including the
 | 
					 | 
				
			||||||
  // field in a request does nothing (the server *must* ignore it and
 | 
					 | 
				
			||||||
  // *must not* throw an error as a result of the field's presence).
 | 
					 | 
				
			||||||
  OUTPUT_ONLY = 3;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Denotes a field as input only.
 | 
					 | 
				
			||||||
  // This indicates that the field is provided in requests, and the
 | 
					 | 
				
			||||||
  // corresponding field is not included in output.
 | 
					 | 
				
			||||||
  INPUT_ONLY = 4;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Denotes a field as immutable.
 | 
					 | 
				
			||||||
  // This indicates that the field may be set once in a request to create a
 | 
					 | 
				
			||||||
  // resource, but may not be changed thereafter.
 | 
					 | 
				
			||||||
  IMMUTABLE = 5;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Denotes that a (repeated) field is an unordered list.
 | 
					 | 
				
			||||||
  // This indicates that the service may provide the elements of the list
 | 
					 | 
				
			||||||
  // in any arbitrary  order, rather than the order the user originally
 | 
					 | 
				
			||||||
  // provided. Additionally, the list's order may or may not be stable.
 | 
					 | 
				
			||||||
  UNORDERED_LIST = 6;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Denotes that this field returns a non-empty default value if not set.
 | 
					 | 
				
			||||||
  // This indicates that if the user provides the empty value in a request,
 | 
					 | 
				
			||||||
  // a non-empty value will be returned. The user will not be aware of what
 | 
					 | 
				
			||||||
  // non-empty value to expect.
 | 
					 | 
				
			||||||
  NON_EMPTY_DEFAULT = 7;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Denotes that the field in a resource (a message annotated with
 | 
					 | 
				
			||||||
  // google.api.resource) is used in the resource name to uniquely identify the
 | 
					 | 
				
			||||||
  // resource. For AIP-compliant APIs, this should only be applied to the
 | 
					 | 
				
			||||||
  // `name` field on the resource.
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  // This behavior should not be applied to references to other resources within
 | 
					 | 
				
			||||||
  // the message.
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  // The identifier field of resources often have different field behavior
 | 
					 | 
				
			||||||
  // depending on the request it is embedded in (e.g. for Create methods name
 | 
					 | 
				
			||||||
  // is optional and unused, while for Update methods it is required). Instead
 | 
					 | 
				
			||||||
  // of method-specific annotations, only `IDENTIFIER` is required.
 | 
					 | 
				
			||||||
  IDENTIFIER = 8;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,370 +0,0 @@
 | 
				
			|||||||
// Copyright 2025 Google LLC
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
// you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
// You may obtain a copy of the License at
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
// distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
// See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
// limitations under the License.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
syntax = "proto3";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package google.api;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
 | 
					 | 
				
			||||||
option java_multiple_files = true;
 | 
					 | 
				
			||||||
option java_outer_classname = "HttpProto";
 | 
					 | 
				
			||||||
option java_package = "com.google.api";
 | 
					 | 
				
			||||||
option objc_class_prefix = "GAPI";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Defines the HTTP configuration for an API service. It contains a list of
 | 
					 | 
				
			||||||
// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
 | 
					 | 
				
			||||||
// to one or more HTTP REST API methods.
 | 
					 | 
				
			||||||
message Http {
 | 
					 | 
				
			||||||
  // A list of HTTP configuration rules that apply to individual API methods.
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  // **NOTE:** All service configuration rules follow "last one wins" order.
 | 
					 | 
				
			||||||
  repeated HttpRule rules = 1;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // When set to true, URL path parameters will be fully URI-decoded except in
 | 
					 | 
				
			||||||
  // cases of single segment matches in reserved expansion, where "%2F" will be
 | 
					 | 
				
			||||||
  // left encoded.
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  // The default behavior is to not decode RFC 6570 reserved characters in multi
 | 
					 | 
				
			||||||
  // segment matches.
 | 
					 | 
				
			||||||
  bool fully_decode_reserved_expansion = 2;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// gRPC Transcoding
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// gRPC Transcoding is a feature for mapping between a gRPC method and one or
 | 
					 | 
				
			||||||
// more HTTP REST endpoints. It allows developers to build a single API service
 | 
					 | 
				
			||||||
// that supports both gRPC APIs and REST APIs. Many systems, including [Google
 | 
					 | 
				
			||||||
// APIs](https://github.com/googleapis/googleapis),
 | 
					 | 
				
			||||||
// [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
 | 
					 | 
				
			||||||
// Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
 | 
					 | 
				
			||||||
// and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
 | 
					 | 
				
			||||||
// and use it for large scale production services.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
 | 
					 | 
				
			||||||
// how different portions of the gRPC request message are mapped to the URL
 | 
					 | 
				
			||||||
// path, URL query parameters, and HTTP request body. It also controls how the
 | 
					 | 
				
			||||||
// gRPC response message is mapped to the HTTP response body. `HttpRule` is
 | 
					 | 
				
			||||||
// typically specified as an `google.api.http` annotation on the gRPC method.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Each mapping specifies a URL path template and an HTTP method. The path
 | 
					 | 
				
			||||||
// template may refer to one or more fields in the gRPC request message, as long
 | 
					 | 
				
			||||||
// as each field is a non-repeated field with a primitive (non-message) type.
 | 
					 | 
				
			||||||
// The path template controls how fields of the request message are mapped to
 | 
					 | 
				
			||||||
// the URL path.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Example:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     service Messaging {
 | 
					 | 
				
			||||||
//       rpc GetMessage(GetMessageRequest) returns (Message) {
 | 
					 | 
				
			||||||
//         option (google.api.http) = {
 | 
					 | 
				
			||||||
//             get: "/v1/{name=messages/*}"
 | 
					 | 
				
			||||||
//         };
 | 
					 | 
				
			||||||
//       }
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//     message GetMessageRequest {
 | 
					 | 
				
			||||||
//       string name = 1; // Mapped to URL path.
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//     message Message {
 | 
					 | 
				
			||||||
//       string text = 1; // The resource content.
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// This enables an HTTP REST to gRPC mapping as below:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// - HTTP: `GET /v1/messages/123456`
 | 
					 | 
				
			||||||
// - gRPC: `GetMessage(name: "messages/123456")`
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Any fields in the request message which are not bound by the path template
 | 
					 | 
				
			||||||
// automatically become HTTP query parameters if there is no HTTP request body.
 | 
					 | 
				
			||||||
// For example:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     service Messaging {
 | 
					 | 
				
			||||||
//       rpc GetMessage(GetMessageRequest) returns (Message) {
 | 
					 | 
				
			||||||
//         option (google.api.http) = {
 | 
					 | 
				
			||||||
//             get:"/v1/messages/{message_id}"
 | 
					 | 
				
			||||||
//         };
 | 
					 | 
				
			||||||
//       }
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//     message GetMessageRequest {
 | 
					 | 
				
			||||||
//       message SubMessage {
 | 
					 | 
				
			||||||
//         string subfield = 1;
 | 
					 | 
				
			||||||
//       }
 | 
					 | 
				
			||||||
//       string message_id = 1; // Mapped to URL path.
 | 
					 | 
				
			||||||
//       int64 revision = 2;    // Mapped to URL query parameter `revision`.
 | 
					 | 
				
			||||||
//       SubMessage sub = 3;    // Mapped to URL query parameter `sub.subfield`.
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// This enables a HTTP JSON to RPC mapping as below:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
 | 
					 | 
				
			||||||
// - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
 | 
					 | 
				
			||||||
// SubMessage(subfield: "foo"))`
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Note that fields which are mapped to URL query parameters must have a
 | 
					 | 
				
			||||||
// primitive type or a repeated primitive type or a non-repeated message type.
 | 
					 | 
				
			||||||
// In the case of a repeated type, the parameter can be repeated in the URL
 | 
					 | 
				
			||||||
// as `...?param=A¶m=B`. In the case of a message type, each field of the
 | 
					 | 
				
			||||||
// message is mapped to a separate parameter, such as
 | 
					 | 
				
			||||||
// `...?foo.a=A&foo.b=B&foo.c=C`.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// For HTTP methods that allow a request body, the `body` field
 | 
					 | 
				
			||||||
// specifies the mapping. Consider a REST update method on the
 | 
					 | 
				
			||||||
// message resource collection:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     service Messaging {
 | 
					 | 
				
			||||||
//       rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
 | 
					 | 
				
			||||||
//         option (google.api.http) = {
 | 
					 | 
				
			||||||
//           patch: "/v1/messages/{message_id}"
 | 
					 | 
				
			||||||
//           body: "message"
 | 
					 | 
				
			||||||
//         };
 | 
					 | 
				
			||||||
//       }
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//     message UpdateMessageRequest {
 | 
					 | 
				
			||||||
//       string message_id = 1; // mapped to the URL
 | 
					 | 
				
			||||||
//       Message message = 2;   // mapped to the body
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// The following HTTP JSON to RPC mapping is enabled, where the
 | 
					 | 
				
			||||||
// representation of the JSON in the request body is determined by
 | 
					 | 
				
			||||||
// protos JSON encoding:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
 | 
					 | 
				
			||||||
// - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// The special name `*` can be used in the body mapping to define that
 | 
					 | 
				
			||||||
// every field not bound by the path template should be mapped to the
 | 
					 | 
				
			||||||
// request body.  This enables the following alternative definition of
 | 
					 | 
				
			||||||
// the update method:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     service Messaging {
 | 
					 | 
				
			||||||
//       rpc UpdateMessage(Message) returns (Message) {
 | 
					 | 
				
			||||||
//         option (google.api.http) = {
 | 
					 | 
				
			||||||
//           patch: "/v1/messages/{message_id}"
 | 
					 | 
				
			||||||
//           body: "*"
 | 
					 | 
				
			||||||
//         };
 | 
					 | 
				
			||||||
//       }
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//     message Message {
 | 
					 | 
				
			||||||
//       string message_id = 1;
 | 
					 | 
				
			||||||
//       string text = 2;
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// The following HTTP JSON to RPC mapping is enabled:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
 | 
					 | 
				
			||||||
// - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Note that when using `*` in the body mapping, it is not possible to
 | 
					 | 
				
			||||||
// have HTTP parameters, as all fields not bound by the path end in
 | 
					 | 
				
			||||||
// the body. This makes this option more rarely used in practice when
 | 
					 | 
				
			||||||
// defining REST APIs. The common usage of `*` is in custom methods
 | 
					 | 
				
			||||||
// which don't use the URL at all for transferring data.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// It is possible to define multiple HTTP methods for one RPC by using
 | 
					 | 
				
			||||||
// the `additional_bindings` option. Example:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     service Messaging {
 | 
					 | 
				
			||||||
//       rpc GetMessage(GetMessageRequest) returns (Message) {
 | 
					 | 
				
			||||||
//         option (google.api.http) = {
 | 
					 | 
				
			||||||
//           get: "/v1/messages/{message_id}"
 | 
					 | 
				
			||||||
//           additional_bindings {
 | 
					 | 
				
			||||||
//             get: "/v1/users/{user_id}/messages/{message_id}"
 | 
					 | 
				
			||||||
//           }
 | 
					 | 
				
			||||||
//         };
 | 
					 | 
				
			||||||
//       }
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//     message GetMessageRequest {
 | 
					 | 
				
			||||||
//       string message_id = 1;
 | 
					 | 
				
			||||||
//       string user_id = 2;
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// This enables the following two alternative HTTP JSON to RPC mappings:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// - HTTP: `GET /v1/messages/123456`
 | 
					 | 
				
			||||||
// - gRPC: `GetMessage(message_id: "123456")`
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// - HTTP: `GET /v1/users/me/messages/123456`
 | 
					 | 
				
			||||||
// - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Rules for HTTP mapping
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// 1. Leaf request fields (recursive expansion nested messages in the request
 | 
					 | 
				
			||||||
//    message) are classified into three categories:
 | 
					 | 
				
			||||||
//    - Fields referred by the path template. They are passed via the URL path.
 | 
					 | 
				
			||||||
//    - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
 | 
					 | 
				
			||||||
//    are passed via the HTTP
 | 
					 | 
				
			||||||
//      request body.
 | 
					 | 
				
			||||||
//    - All other fields are passed via the URL query parameters, and the
 | 
					 | 
				
			||||||
//      parameter name is the field path in the request message. A repeated
 | 
					 | 
				
			||||||
//      field can be represented as multiple query parameters under the same
 | 
					 | 
				
			||||||
//      name.
 | 
					 | 
				
			||||||
//  2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
 | 
					 | 
				
			||||||
//  query parameter, all fields
 | 
					 | 
				
			||||||
//     are passed via URL path and HTTP request body.
 | 
					 | 
				
			||||||
//  3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
 | 
					 | 
				
			||||||
//  request body, all
 | 
					 | 
				
			||||||
//     fields are passed via URL path and URL query parameters.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Path template syntax
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     Template = "/" Segments [ Verb ] ;
 | 
					 | 
				
			||||||
//     Segments = Segment { "/" Segment } ;
 | 
					 | 
				
			||||||
//     Segment  = "*" | "**" | LITERAL | Variable ;
 | 
					 | 
				
			||||||
//     Variable = "{" FieldPath [ "=" Segments ] "}" ;
 | 
					 | 
				
			||||||
//     FieldPath = IDENT { "." IDENT } ;
 | 
					 | 
				
			||||||
//     Verb     = ":" LITERAL ;
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// The syntax `*` matches a single URL path segment. The syntax `**` matches
 | 
					 | 
				
			||||||
// zero or more URL path segments, which must be the last part of the URL path
 | 
					 | 
				
			||||||
// except the `Verb`.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// The syntax `Variable` matches part of the URL path as specified by its
 | 
					 | 
				
			||||||
// template. A variable template must not contain other variables. If a variable
 | 
					 | 
				
			||||||
// matches a single path segment, its template may be omitted, e.g. `{var}`
 | 
					 | 
				
			||||||
// is equivalent to `{var=*}`.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
 | 
					 | 
				
			||||||
// contains any reserved character, such characters should be percent-encoded
 | 
					 | 
				
			||||||
// before the matching.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// If a variable contains exactly one path segment, such as `"{var}"` or
 | 
					 | 
				
			||||||
// `"{var=*}"`, when such a variable is expanded into a URL path on the client
 | 
					 | 
				
			||||||
// side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
 | 
					 | 
				
			||||||
// server side does the reverse decoding. Such variables show up in the
 | 
					 | 
				
			||||||
// [Discovery
 | 
					 | 
				
			||||||
// Document](https://developers.google.com/discovery/v1/reference/apis) as
 | 
					 | 
				
			||||||
// `{var}`.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// If a variable contains multiple path segments, such as `"{var=foo/*}"`
 | 
					 | 
				
			||||||
// or `"{var=**}"`, when such a variable is expanded into a URL path on the
 | 
					 | 
				
			||||||
// client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
 | 
					 | 
				
			||||||
// The server side does the reverse decoding, except "%2F" and "%2f" are left
 | 
					 | 
				
			||||||
// unchanged. Such variables show up in the
 | 
					 | 
				
			||||||
// [Discovery
 | 
					 | 
				
			||||||
// Document](https://developers.google.com/discovery/v1/reference/apis) as
 | 
					 | 
				
			||||||
// `{+var}`.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Using gRPC API Service Configuration
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// gRPC API Service Configuration (service config) is a configuration language
 | 
					 | 
				
			||||||
// for configuring a gRPC service to become a user-facing product. The
 | 
					 | 
				
			||||||
// service config is simply the YAML representation of the `google.api.Service`
 | 
					 | 
				
			||||||
// proto message.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// As an alternative to annotating your proto file, you can configure gRPC
 | 
					 | 
				
			||||||
// transcoding in your service config YAML files. You do this by specifying a
 | 
					 | 
				
			||||||
// `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
 | 
					 | 
				
			||||||
// effect as the proto annotation. This can be particularly useful if you
 | 
					 | 
				
			||||||
// have a proto that is reused in multiple services. Note that any transcoding
 | 
					 | 
				
			||||||
// specified in the service config will override any matching transcoding
 | 
					 | 
				
			||||||
// configuration in the proto.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// The following example selects a gRPC method and applies an `HttpRule` to it:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     http:
 | 
					 | 
				
			||||||
//       rules:
 | 
					 | 
				
			||||||
//         - selector: example.v1.Messaging.GetMessage
 | 
					 | 
				
			||||||
//           get: /v1/messages/{message_id}/{sub.subfield}
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Special notes
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
 | 
					 | 
				
			||||||
// proto to JSON conversion must follow the [proto3
 | 
					 | 
				
			||||||
// specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// While the single segment variable follows the semantics of
 | 
					 | 
				
			||||||
// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
 | 
					 | 
				
			||||||
// Expansion, the multi segment variable **does not** follow RFC 6570 Section
 | 
					 | 
				
			||||||
// 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
 | 
					 | 
				
			||||||
// does not expand special characters like `?` and `#`, which would lead
 | 
					 | 
				
			||||||
// to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
 | 
					 | 
				
			||||||
// for multi segment variables.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// The path variables **must not** refer to any repeated or mapped field,
 | 
					 | 
				
			||||||
// because client libraries are not capable of handling such variable expansion.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// The path variables **must not** capture the leading "/" character. The reason
 | 
					 | 
				
			||||||
// is that the most common use case "{var}" does not capture the leading "/"
 | 
					 | 
				
			||||||
// character. For consistency, all path variables must share the same behavior.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Repeated message fields must not be mapped to URL query parameters, because
 | 
					 | 
				
			||||||
// no client library can support such complicated mapping.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// If an API needs to use a JSON array for request or response body, it can map
 | 
					 | 
				
			||||||
// the request or response body to a repeated field. However, some gRPC
 | 
					 | 
				
			||||||
// Transcoding implementations may not support this feature.
 | 
					 | 
				
			||||||
message HttpRule {
 | 
					 | 
				
			||||||
  // Selects a method to which this rule applies.
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  // Refer to [selector][google.api.DocumentationRule.selector] for syntax
 | 
					 | 
				
			||||||
  // details.
 | 
					 | 
				
			||||||
  string selector = 1;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Determines the URL pattern is matched by this rules. This pattern can be
 | 
					 | 
				
			||||||
  // used with any of the {get|put|post|delete|patch} methods. A custom method
 | 
					 | 
				
			||||||
  // can be defined using the 'custom' field.
 | 
					 | 
				
			||||||
  oneof pattern {
 | 
					 | 
				
			||||||
    // Maps to HTTP GET. Used for listing and getting information about
 | 
					 | 
				
			||||||
    // resources.
 | 
					 | 
				
			||||||
    string get = 2;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Maps to HTTP PUT. Used for replacing a resource.
 | 
					 | 
				
			||||||
    string put = 3;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Maps to HTTP POST. Used for creating a resource or performing an action.
 | 
					 | 
				
			||||||
    string post = 4;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Maps to HTTP DELETE. Used for deleting a resource.
 | 
					 | 
				
			||||||
    string delete = 5;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Maps to HTTP PATCH. Used for updating a resource.
 | 
					 | 
				
			||||||
    string patch = 6;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // The custom pattern is used for specifying an HTTP method that is not
 | 
					 | 
				
			||||||
    // included in the `pattern` field, such as HEAD, or "*" to leave the
 | 
					 | 
				
			||||||
    // HTTP method unspecified for this rule. The wild-card rule is useful
 | 
					 | 
				
			||||||
    // for services that provide content to Web (HTML) clients.
 | 
					 | 
				
			||||||
    CustomHttpPattern custom = 8;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // The name of the request field whose value is mapped to the HTTP request
 | 
					 | 
				
			||||||
  // body, or `*` for mapping all request fields not captured by the path
 | 
					 | 
				
			||||||
  // pattern to the HTTP body, or omitted for not having any HTTP request body.
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  // NOTE: the referred field must be present at the top-level of the request
 | 
					 | 
				
			||||||
  // message type.
 | 
					 | 
				
			||||||
  string body = 7;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Optional. The name of the response field whose value is mapped to the HTTP
 | 
					 | 
				
			||||||
  // response body. When omitted, the entire response message will be used
 | 
					 | 
				
			||||||
  // as the HTTP response body.
 | 
					 | 
				
			||||||
  //
 | 
					 | 
				
			||||||
  // NOTE: The referred field must be present at the top-level of the response
 | 
					 | 
				
			||||||
  // message type.
 | 
					 | 
				
			||||||
  string response_body = 12;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Additional HTTP bindings for the selector. Nested bindings must
 | 
					 | 
				
			||||||
  // not contain an `additional_bindings` field themselves (that is,
 | 
					 | 
				
			||||||
  // the nesting may only be one level deep).
 | 
					 | 
				
			||||||
  repeated HttpRule additional_bindings = 11;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// A custom pattern is used for defining custom HTTP verb.
 | 
					 | 
				
			||||||
message CustomHttpPattern {
 | 
					 | 
				
			||||||
  // The name of this custom HTTP verb.
 | 
					 | 
				
			||||||
  string kind = 1;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // The path matched by this custom verb.
 | 
					 | 
				
			||||||
  string path = 2;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,80 +0,0 @@
 | 
				
			|||||||
// Copyright 2025 Google LLC
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
// you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
// You may obtain a copy of the License at
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
// distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
// See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
// limitations under the License.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
syntax = "proto3";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package google.api;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import "google/protobuf/any.proto";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
option go_package = "google.golang.org/genproto/googleapis/api/httpbody;httpbody";
 | 
					 | 
				
			||||||
option java_multiple_files = true;
 | 
					 | 
				
			||||||
option java_outer_classname = "HttpBodyProto";
 | 
					 | 
				
			||||||
option java_package = "com.google.api";
 | 
					 | 
				
			||||||
option objc_class_prefix = "GAPI";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Message that represents an arbitrary HTTP body. It should only be used for
 | 
					 | 
				
			||||||
// payload formats that can't be represented as JSON, such as raw binary or
 | 
					 | 
				
			||||||
// an HTML page.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// This message can be used both in streaming and non-streaming API methods in
 | 
					 | 
				
			||||||
// the request as well as the response.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// It can be used as a top-level request field, which is convenient if one
 | 
					 | 
				
			||||||
// wants to extract parameters from either the URL or HTTP template into the
 | 
					 | 
				
			||||||
// request fields and also want access to the raw HTTP body.
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Example:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     message GetResourceRequest {
 | 
					 | 
				
			||||||
//       // A unique request id.
 | 
					 | 
				
			||||||
//       string request_id = 1;
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//       // The raw HTTP body is bound to this field.
 | 
					 | 
				
			||||||
//       google.api.HttpBody http_body = 2;
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     service ResourceService {
 | 
					 | 
				
			||||||
//       rpc GetResource(GetResourceRequest)
 | 
					 | 
				
			||||||
//         returns (google.api.HttpBody);
 | 
					 | 
				
			||||||
//       rpc UpdateResource(google.api.HttpBody)
 | 
					 | 
				
			||||||
//         returns (google.protobuf.Empty);
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Example with streaming methods:
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     service CaldavService {
 | 
					 | 
				
			||||||
//       rpc GetCalendar(stream google.api.HttpBody)
 | 
					 | 
				
			||||||
//         returns (stream google.api.HttpBody);
 | 
					 | 
				
			||||||
//       rpc UpdateCalendar(stream google.api.HttpBody)
 | 
					 | 
				
			||||||
//         returns (stream google.api.HttpBody);
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
//     }
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
// Use of this type only changes how the request and response bodies are
 | 
					 | 
				
			||||||
// handled, all other features will continue to work unchanged.
 | 
					 | 
				
			||||||
message HttpBody {
 | 
					 | 
				
			||||||
  // The HTTP Content-Type header value specifying the content type of the body.
 | 
					 | 
				
			||||||
  string content_type = 1;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // The HTTP request/response body as raw binary.
 | 
					 | 
				
			||||||
  bytes data = 2;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // Application specific response metadata. Must be set in the first response
 | 
					 | 
				
			||||||
  // for streaming APIs.
 | 
					 | 
				
			||||||
  repeated google.protobuf.Any extensions = 3;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user