Documentation
¶
Index ¶
- func IAMServiceGatewayManifest() gatewayx.Manifest
- func IAMServiceKernelModule() serverx.ServiceModule
- func RegisterIAMServiceGRPCServer(s grpc.ServiceRegistrar, srv iamGRPCServer)
- func RegisterPlatformGatewayGRPCInvokers(registry *gatewayx.InvokerRegistry, iam IAMServiceClient, ...) error
- func RegisterPlatformGatewayInvokers(registry *gatewayx.InvokerRegistry, iam iamService, skill *skillService, ...) error
- func RegisterSkillServiceGRPCServer(s grpc.ServiceRegistrar, handler middleware.Handler)
- func SkillServiceAccessResolver(ctx context.Context, operation string, req any) (accessx.Check, bool, error)
- func SkillServiceGatewayManifest() gatewayx.Manifest
- func SkillServiceKernelModule() serverx.ServiceModule
- func SkillServiceRequestInfoResolver(ctx context.Context, operation string, req any) (requestx.Info, bool, error)
- type IAMServiceClient
- type SkillServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IAMServiceGatewayManifest ¶
IAMServiceGatewayManifest is the generated-equivalent output of protoc-gen-go-gateway for validation/iamservice/api/iam/v1/iam.proto.
func IAMServiceKernelModule ¶
func IAMServiceKernelModule() serverx.ServiceModule
IAMServiceKernelModule is generated-equivalent output of protoc-gen-go-kernel.
func RegisterIAMServiceGRPCServer ¶
func RegisterIAMServiceGRPCServer(s grpc.ServiceRegistrar, srv iamGRPCServer)
func RegisterPlatformGatewayGRPCInvokers ¶
func RegisterPlatformGatewayGRPCInvokers(registry *gatewayx.InvokerRegistry, iam IAMServiceClient, skill SkillServiceClient) error
RegisterPlatformGatewayGRPCInvokers is the generated shape used by Gateway. It uses generated gRPC clients, not in-memory service function calls.
func RegisterPlatformGatewayInvokers ¶
func RegisterPlatformGatewayInvokers(registry *gatewayx.InvokerRegistry, iam iamService, skill *skillService, skillHandler middleware.Handler) error
RegisterPlatformGatewayInvokers is generated-equivalent Gateway -> service gRPC binding registration.
func RegisterSkillServiceGRPCServer ¶
func RegisterSkillServiceGRPCServer(s grpc.ServiceRegistrar, handler middleware.Handler)
func SkillServiceAccessResolver ¶
func SkillServiceAccessResolver(ctx context.Context, operation string, req any) (accessx.Check, bool, error)
SkillServiceAccessResolver maps proto access policy to accessx.Check. The Check is executed by accessx.Guard inside SkillService, not by Gateway.
func SkillServiceGatewayManifest ¶
SkillServiceGatewayManifest is the generated-equivalent output of protoc-gen-go-gateway for a skill service proto.
func SkillServiceKernelModule ¶
func SkillServiceKernelModule() serverx.ServiceModule
SkillServiceKernelModule is generated-equivalent output of protoc-gen-go-kernel.
func SkillServiceRequestInfoResolver ¶
func SkillServiceRequestInfoResolver(ctx context.Context, operation string, req any) (requestx.Info, bool, error)
SkillServiceRequestInfoResolver is the generated-equivalent output of protoc-gen-go-authz. It makes SkillService the authoritative authn/authz enforcement point after Gateway performs passive token relay.
Types ¶
type IAMServiceClient ¶
type IAMServiceClient interface {
Login(ctx context.Context, in LoginRequest, opts ...grpc.CallOption) (LoginReply, error)
}
func NewIAMServiceClient ¶
func NewIAMServiceClient(cc grpc.ClientConnInterface) IAMServiceClient
type SkillServiceClient ¶
type SkillServiceClient interface {
GetSkill(ctx context.Context, in GetSkillRequest, opts ...grpc.CallOption) (Skill, error)
}
func NewSkillServiceClient ¶
func NewSkillServiceClient(cc grpc.ClientConnInterface) SkillServiceClient