Documentation ¶
Index ¶
- func FromExtension[T any](ctx context.Context, client managementv1.ManagementClient, serviceName string, ...) (T, error)
- func NewManagementClient(ctx waitctx.PermissiveContext, opts ...ManagementClientOption) (managementv1.ManagementClient, error)
- type GatewayClient
- type Locker
- type ManagementClientOption
- type ManagementClientOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromExtension ¶ added in v0.5.4
func FromExtension[T any]( ctx context.Context, client managementv1.ManagementClient, serviceName string, constructor func(grpc.ClientConnInterface) T, ) (T, error)
func NewManagementClient ¶ added in v0.5.4
func NewManagementClient(ctx waitctx.PermissiveContext, opts ...ManagementClientOption) (managementv1.ManagementClient, error)
Types ¶
type GatewayClient ¶ added in v0.5.4
type GatewayClient interface { grpc.ServiceRegistrar // credentials.PerRPCCredentials // Connect returns a ClientConnInterface connected to the streaming server. // The connection remains active until the provided context is canceled. Connect(context.Context) (grpc.ClientConnInterface, future.Future[error]) RegisterSplicedStream(cc grpc.ClientConnInterface, name string) ClientConn() grpc.ClientConnInterface }
type Locker ¶ added in v0.5.4
type Locker[T any] interface { // Use obtains exclusive ownership of the client, then calls the provided // function with the client. Ownership of the client is maintained until the // function returns. // It is safe to call Use if the Locker is nil; it will simply return false. Use(func(T)) bool // Close releases the client. After Close is called, Use() will return false. Close() }
func NewLocker ¶ added in v0.5.4
func NewLocker[T any](cc grpc.ClientConnInterface, builder func(grpc.ClientConnInterface) T) Locker[T]
type ManagementClientOption ¶ added in v0.5.4
type ManagementClientOption func(*ManagementClientOptions)
func WithAddress ¶ added in v0.5.4
func WithAddress(addr string) ManagementClientOption
func WithDialOptions ¶ added in v0.5.4
func WithDialOptions(options ...grpc.DialOption) ManagementClientOption
type ManagementClientOptions ¶ added in v0.5.4
type ManagementClientOptions struct {
// contains filtered or unexported fields
}
func (*ManagementClientOptions) Apply ¶ added in v0.5.4
func (o *ManagementClientOptions) Apply(opts ...ManagementClientOption)
Click to show internal directories.
Click to hide internal directories.