Documentation ¶
Overview ¶
Package clientconn - chain element for injecting a grpc.ClientConnInterface into the client chain
Package clientconn - chain element for injecting a grpc.ClientConnInterface into the client chain
Index ¶
- func Delete(ctx context.Context)
- func Load(ctx context.Context) (grpc.ClientConnInterface, bool)
- func LoadAndDelete(ctx context.Context) (grpc.ClientConnInterface, bool)
- func LoadOrStore(ctx context.Context, cc grpc.ClientConnInterface) (grpc.ClientConnInterface, bool)
- func NewNetworkServiceEndpointRegistryClient() registry.NetworkServiceEndpointRegistryClient
- func NewNetworkServiceRegistryClient() registry.NetworkServiceRegistryClient
- func Store(ctx context.Context, cc grpc.ClientConnInterface)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context) (grpc.ClientConnInterface, bool)
Load returns the value stored in the map for a key, or nil if no value is present. The ok result indicates whether value was found in the map.
func LoadAndDelete ¶
func LoadAndDelete(ctx context.Context) (grpc.ClientConnInterface, bool)
LoadAndDelete deletes the value for a key, returning the previous value if any. The loaded result reports whether the key was present.
func LoadOrStore ¶
func LoadOrStore(ctx context.Context, cc grpc.ClientConnInterface) (grpc.ClientConnInterface, bool)
LoadOrStore returns the existing value for the key if present. Otherwise, it stores and returns the given value. The loaded result is true if the value was loaded, false if stored.
func NewNetworkServiceEndpointRegistryClient ¶
func NewNetworkServiceEndpointRegistryClient() registry.NetworkServiceEndpointRegistryClient
NewNetworkServiceEndpointRegistryClient - returns a new null client that does nothing but call next.NetworkServiceEndpointRegistryClient(ctx).
func NewNetworkServiceRegistryClient ¶
func NewNetworkServiceRegistryClient() registry.NetworkServiceRegistryClient
NewNetworkServiceRegistryClient - returns a new null client that does nothing but call next.NetworkServiceRegistryClient(ctx).
Types ¶
This section is empty.