feat: scaffold traefik-llmgateway plugin skeleton with manifest

This commit is contained in:
2026-08-20 00:17:16 +01:00
commit 2469918d7d
9 changed files with 476 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package traefikllmgateway
import (
"fmt"
"os"
)
// logf writes an info-level log line to stderr. No timestamps — Traefik
// adds its own. Never log key material.
func (g *Gateway) logf(format string, args ...any) {
fmt.Fprintf(os.Stderr, "llmgw[%s] INFO "+format+"\n", append([]any{g.name}, args...)...)
}
// errorf writes an error-level log line to stderr. No timestamps — Traefik
// adds its own. Never log key material.
func (g *Gateway) errorf(format string, args ...any) {
fmt.Fprintf(os.Stderr, "llmgw[%s] ERROR "+format+"\n", append([]any{g.name}, args...)...)
}