Documentation ¶
Index ¶
- func PerRPCClientIDCredentials(clientID string, secret string) grpc.CallOption
- func PerRPCTokenCredentials(token string) grpc.CallOption
- func StreamServerInterceptor(f AuthFunc) grpc.StreamServerInterceptor
- func UnaryServerInterceptor(f AuthFunc) grpc.UnaryServerInterceptor
- func WithPerRPCClientIDCredentials(clientID string, secret string) grpc.DialOption
- func WithPerRPCTokenCredentials(token string) grpc.DialOption
- type AuthFunc
- type OAuthCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PerRPCClientIDCredentials ¶
func PerRPCClientIDCredentials(clientID string, secret string) grpc.CallOption
PerRPCClientIDCredentials returns a CallOption that sets credentials.PerRPCCredentials with OAuth2 client_id and secret for a call.
func PerRPCTokenCredentials ¶
func PerRPCTokenCredentials(token string) grpc.CallOption
PerRPCTokenCredentials returns a CallOption that sets credentials.PerRPCCredentials with OAuth2 token for a call.
func StreamServerInterceptor ¶
func StreamServerInterceptor(f AuthFunc) grpc.StreamServerInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(f AuthFunc) grpc.UnaryServerInterceptor
func WithPerRPCClientIDCredentials ¶
func WithPerRPCClientIDCredentials(clientID string, secret string) grpc.DialOption
WithPerRPCClientIDCredentials returns a DialOption which sets OAuth2 client_id and secret credentials and places auth state on each outbound RPC.
func WithPerRPCTokenCredentials ¶
func WithPerRPCTokenCredentials(token string) grpc.DialOption
WithPerRPCTokenCredentials returns a DialOption which sets OAuth2 token credentials and places auth state on each outbound RPC.
Types ¶
type OAuthCredentials ¶
Click to show internal directories.
Click to hide internal directories.