Versions in this module Expand all Collapse all v1 v1.5.0 Dec 16, 2023 Changes in this version + func DialConnection(ctx context.Context, opts ...ClientOption) (*grpc.ClientConn, error) + func HttpClient(ctx context.Context, opts ...ClientOption) (*http.Client, error) + func VersionGo() string + func XAntHeader(keyval ...string) string + type ClientCertSource = func(*tls.CertificateRequestInfo) (*tls.Certificate, error) + type ClientOption interface + Apply func(*DialSettings) + func WithAudiences(audience ...string) ClientOption + func WithClientCertSource(s ClientCertSource) ClientOption + func WithEndpoint(url string) ClientOption + func WithGRPCConn(conn *grpc.ClientConn) ClientOption + func WithGRPCDialOption(opt grpc.DialOption) ClientOption + func WithHTTPClient(client *http.Client) ClientOption + func WithRequestReason(requestReason string) ClientOption + func WithScopes(scope ...string) ClientOption + func WithTokenApiKey(apiKey string) ClientOption + func WithTokenEndpoint(tokenEndpoint string) ClientOption + func WithTokenPassword(tokenPassword string) ClientOption + func WithTokenSource(s oauth2.TokenSource) ClientOption + func WithTokenUsername(tokenUsername string) ClientOption + func WithUserAgent(ua string) ClientOption + func WithoutAuthentication() ClientOption + type CtxServiceKey string + type DialSettings struct + APIKey string + Audiences []string + ClientCertSource func(*tls.CertificateRequestInfo) (*tls.Certificate, error) + CustomClaims map[string]interface{} + DefaultAudience string + DefaultScopes []string + Endpoint string + GRPCConn *grpc.ClientConn + GRPCDialOpts []grpc.DialOption + HTTPClient *http.Client + NoAuth bool + RequestReason string + Scopes []string + TokenEndpoint string + TokenPassword string + TokenSource oauth2.TokenSource + TokenUserName string + UserAgent string + func (ds *DialSettings) GetScopes() []string + func (ds *DialSettings) Validate() error + type JWTInterceptor struct + func (jwt *JWTInterceptor) StreamClientInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, ...) (grpc.ClientStream, error) + func (jwt *JWTInterceptor) UnaryClientInterceptor(ctx context.Context, method string, req interface{}, reply interface{}, ...) error