Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig rpc.Config = rpc.Config{ MaxMessageSize: rpc.DefaultMaxMessageSize, GRPCKeepAliveTime: 10 * time.Second, GRPCKeepAliveTimeout: 10 * time.Second, GRPCInitialConnWindowSize: 0, GRPCInitialWindowSize: 0, }
DefaultConfig - grpc client dial default config
Functions ¶
func AppendStaticAuth ¶
func AppendStaticAuth(opts []grpc.DialOption, grpcAuthStaticPassword []byte) ([]grpc.DialOption, error)
AppendStaticAuth optionally appends static auth credentials if provided.
func RegisterGRPCDialOptions ¶
func RegisterGRPCDialOptions(grpcDialOptionsFunc func(opts []grpc.DialOption, grpcAuthStaticPassword []byte) ([]grpc.DialOption, error))
RegisterGRPCDialOptions registers an implementation of AuthServer.
Types ¶
type Conn ¶
type Conn struct { *grpc.ClientConn // contains filtered or unexported fields }
Conn - grpc conn
type StaticAuthClientCreds ¶
StaticAuthClientCreds holder for client credentials
func (*StaticAuthClientCreds) GetRequestMetadata ¶
func (c *StaticAuthClientCreds) GetRequestMetadata(context.Context, ...string) (map[string]string, error)
GetRequestMetadata gets the request metadata as a map from StaticAuthClientCreds
func (*StaticAuthClientCreds) RequireTransportSecurity ¶
func (c *StaticAuthClientCreds) RequireTransportSecurity() bool
RequireTransportSecurity indicates whether the credentials requires transport security. Given that people can use this with or without TLS, at the moment we are not enforcing transport security
Click to show internal directories.
Click to hide internal directories.