Documentation ¶
Index ¶
- func AllocListenAddress(t *testing.T) string
- func NewNexusServer(t *testing.T, listenAddr string, handler nexus.Handler)
- type FakeEndpointRegistry
- func (f FakeEndpointRegistry) GetByID(ctx context.Context, endpointID string) (*persistencespb.NexusEndpointEntry, error)
- func (f FakeEndpointRegistry) GetByName(ctx context.Context, namespaceID namespace.ID, endpointName string) (*persistencespb.NexusEndpointEntry, error)
- func (f FakeEndpointRegistry) StartLifecycle()
- func (f FakeEndpointRegistry) StopLifecycle()
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocListenAddress ¶
Types ¶
type FakeEndpointRegistry ¶ added in v1.25.0
type FakeEndpointRegistry struct { OnGetByID func(ctx context.Context, endpointID string) (*persistencespb.NexusEndpointEntry, error) OnGetByName func(ctx context.Context, namespaceID namespace.ID, endpointName string) (*persistencespb.NexusEndpointEntry, error) }
func (FakeEndpointRegistry) GetByID ¶ added in v1.25.0
func (f FakeEndpointRegistry) GetByID(ctx context.Context, endpointID string) (*persistencespb.NexusEndpointEntry, error)
func (FakeEndpointRegistry) GetByName ¶ added in v1.25.0
func (f FakeEndpointRegistry) GetByName(ctx context.Context, namespaceID namespace.ID, endpointName string) (*persistencespb.NexusEndpointEntry, error)
func (FakeEndpointRegistry) StartLifecycle ¶ added in v1.25.0
func (f FakeEndpointRegistry) StartLifecycle()
func (FakeEndpointRegistry) StopLifecycle ¶ added in v1.25.0
func (f FakeEndpointRegistry) StopLifecycle()
type Handler ¶
type Handler struct { nexus.UnimplementedHandler OnStartOperation func(ctx context.Context, service, operation string, input *nexus.LazyValue, options nexus.StartOperationOptions) (nexus.HandlerStartOperationResult[any], error) OnCancelOperation func(ctx context.Context, service, operation, operationID string, options nexus.CancelOperationOptions) error }
func (Handler) CancelOperation ¶
func (Handler) StartOperation ¶
Click to show internal directories.
Click to hide internal directories.