Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCredential ¶
func NewCredential(auth types.AuthConfig) credentials.PerRPCCredentials
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
Click to show internal directories.
Click to hide internal directories.