Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
gen
module
|
|
|
cmd
|
|
|
internal/optionmerge
Package optionmerge provides shared merge logic for the three protoc-gen-servora-* plugins (authn, authz, audit).
|
Package optionmerge provides shared merge logic for the three protoc-gen-servora-* plugins (authn, authz, audit). |
|
internal/protoreach
Package protoreach provides a predicate-parameterized tree-walk over proto message descriptors.
|
Package protoreach provides a predicate-parameterized tree-walk over proto message descriptors. |
|
protoc-gen-servora-audit
command
Command protoc-gen-servora-audit translates servora audit proto annotations into a Go file (`audit_rules.gen.go`) that exports a map of audit.CompiledRule entries consumed by the audit middleware at runtime.
|
Command protoc-gen-servora-audit translates servora audit proto annotations into a Go file (`audit_rules.gen.go`) that exports a map of audit.CompiledRule entries consumed by the audit middleware at runtime. |
|
protoc-gen-servora-authn
command
Command protoc-gen-servora-authn translates servora authn proto annotations into a Go file (`authn_rules.gen.go`) that the runtime can consult to decide which RPC methods are public, and which method requires which authentication schemes.
|
Command protoc-gen-servora-authn translates servora authn proto annotations into a Go file (`authn_rules.gen.go`) that the runtime can consult to decide which RPC methods are public, and which method requires which authentication schemes. |
|
protoc-gen-servora-authz
command
Command protoc-gen-servora-authz translates servora authz proto annotations into a Go file (`authz_rules.gen.go`) consumed by the runtime to enforce authorization on RPC methods.
|
Command protoc-gen-servora-authz translates servora authz proto annotations into a Go file (`authz_rules.gen.go`) consumed by the runtime to enforce authorization on RPC methods. |
|
protoc-gen-servora-conf
command
Command protoc-gen-servora-conf consumes servora.conf.v1 annotations on configuration messages and emits a companion <file>.pb.servora-conf.go that declares receiver methods bound to the generated *.pb.go types:
|
Command protoc-gen-servora-conf consumes servora.conf.v1 annotations on configuration messages and emits a companion <file>.pb.servora-conf.go that declares receiver methods bound to the generated *.pb.go types: |
|
protoc-gen-servora-mapper
command
|
|
|
svr
command
|
|
|
contrib
|
|
|
core
|
|
|
infra
|
|
|
broker
Package broker defines Servora's minimal message broker abstraction.
|
Package broker defines Servora's minimal message broker abstraction. |
|
broker/kafka
Package kafka provides a franz-go based implementation of pkg/broker.
|
Package kafka provides a franz-go based implementation of pkg/broker. |
|
db/clickhouse
Package clickhouse provides a framework-level ClickHouse connection helper following the Optional-init pattern established by pkg/broker/kafka.
|
Package clickhouse provides a framework-level ClickHouse connection helper following the Optional-init pattern established by pkg/broker/kafka. |
|
obs
|
|
|
audit
Package audit provides engine-agnostic audit event emission using CloudEvents as the envelope format.
|
Package audit provides engine-agnostic audit event emission using CloudEvents as the envelope format. |
|
audit/kafka
Package kafka provides a stub Auditor for Kafka-based audit event delivery.
|
Package kafka provides a stub Auditor for Kafka-based audit event delivery. |
|
audit/log
Package log provides an Auditor that emits CloudEvents through slog.
|
Package log provides an Auditor that emits CloudEvents through slog. |
|
audit/multi
Package multi provides an Auditor that fans out events to multiple backends.
|
Package multi provides an Auditor that fans out events to multiple backends. |
|
audit/noop
Package noop provides a no-op Auditor that discards all events silently.
|
Package noop provides a no-op Auditor that discards all events silently. |
|
audit/stdout
Package stdout provides an Auditor that JSON-encodes CloudEvents to stdout.
|
Package stdout provides an Auditor that JSON-encodes CloudEvents to stdout. |
|
metrics
Package metrics builds the Servora metrics runtime.
|
Package metrics builds the Servora metrics runtime. |
|
security
|
|
|
authn
Package authn provides an engine-agnostic Kratos middleware dispatcher for authentication.
|
Package authn provides an engine-agnostic Kratos middleware dispatcher for authentication. |
|
authn/apikey
Package apikey provides an API-key authentication skeleton for the engine-agnostic authn dispatcher.
|
Package apikey provides an API-key authentication skeleton for the engine-agnostic authn dispatcher. |
|
authn/jwt
Package jwt provides a generic Bearer JWT authentication skeleton for the engine-agnostic authn dispatcher.
|
Package jwt provides a generic Bearer JWT authentication skeleton for the engine-agnostic authn dispatcher. |
|
authn/noop
Package noop provides a no-op Authenticator that passes through without enrichment.
|
Package noop provides a no-op Authenticator that passes through without enrichment. |
|
authz
Package authz provides a generic Kratos middleware for authorization.
|
Package authz provides a generic Kratos middleware for authorization. |
|
authz/batch
Package batch defines the optional BatchAuthorizer sub-interface for authorization backends that support multi-check in a single round-trip.
|
Package batch defines the optional BatchAuthorizer sub-interface for authorization backends that support multi-check in a single round-trip. |
|
authz/lister
Package lister defines the optional Lister sub-interface for authorization backends that can enumerate resources a subject is allowed to access.
|
Package lister defines the optional Lister sub-interface for authorization backends that can enumerate resources a subject is allowed to access. |
|
authz/noop
Package noop provides a no-op Authorizer that always permits all requests.
|
Package noop provides a no-op Authorizer that always permits all requests. |
|
authz/openfga
Package openfga provides an OpenFGA-based Authorizer implementation for security/authz.
|
Package openfga provides an OpenFGA-based Authorizer implementation for security/authz. |
|
transport
|
|
|
server/http/health
Package health 提供组件化的健康探针能力。
|
Package health 提供组件化的健康探针能力。 |
|
server/middleware
Package middleware 提供服务器中间件链构建工具。
|
Package middleware 提供服务器中间件链构建工具。 |
Click to show internal directories.
Click to hide internal directories.