_examples

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

SDK 示例索引

这里放 完整可运行 的 SDK 示例。
pkg/sdk/docs/* 只保留解释型短片段;需要复制运行时,优先看这里。

示例列表

示例 路径 说明
基础用法 basic/main.go 创建客户端、读取用户、判定监护关系
mTLS mtls/main.go 生产环境 TLS / 重试 / Keepalive 配置
JWT 验证 verifier/main.go 本地验证、JWKS、远程降级
服务间认证 service_auth/main.go ServiceAuthHelper 基础用法
授权判定 authz/main.go Authz().Check() / Authz().Allow()

Documentation

Overview

Package _examples 包含 SDK 使用示例

注意:此目录以下划线开头,go build 会自动忽略

Directories

Path Synopsis
授权判定(PDP)示例
授权判定(PDP)示例
基础用法示例
基础用法示例
mTLS 生产环境配置示例
mTLS 生产环境配置示例
服务间认证示例
服务间认证示例
Token 验证示例
Token 验证示例

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL