Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface {
StreamInterceptor(srv any, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
UnaryInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
}
Auth authenticates incoming grpc calls.
func NewAuth ¶
func NewAuth(auth types.AuthConfig) Auth
type Credential ¶
type Credential interface {
GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)
RequireTransportSecurity() bool
}
Credential supplies per-RPC auth metadata to clients.
func NewCredential ¶
func NewCredential(auth types.AuthConfig) Credential
Click to show internal directories.
Click to hide internal directories.