client

package
v2.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	service.ResourceAggregateClient
	// contains filtered or unexported fields
}

func New

func New(cc grpc.ClientConnInterface, subscriber eventbus.Subscriber) *Client

func (*Client) SyncCreateResource

func (c *Client) SyncCreateResource(ctx context.Context, owner string, req *commands.CreateResourceRequest) (*events.ResourceCreated, error)

SyncCreateResource sends create resource command to resource aggregate and wait for resource created event from eventbus.

func (*Client) SyncDeleteResource

func (c *Client) SyncDeleteResource(ctx context.Context, owner string, req *commands.DeleteResourceRequest) (*events.ResourceDeleted, error)

SyncDeleteResource sends delete resource command to resource aggregate and wait for resource deleted event from eventbus.

func (*Client) SyncRetrieveResource

func (c *Client) SyncRetrieveResource(ctx context.Context, owner string, req *commands.RetrieveResourceRequest) (*events.ResourceRetrieved, error)

SyncRetrieveResource sends retrieve resource command to resource aggregate and wait for resource retrieved event from eventbus.

func (*Client) SyncUpdateDeviceMetadata

func (c *Client) SyncUpdateDeviceMetadata(ctx context.Context, owner string, req *commands.UpdateDeviceMetadataRequest) (*events.DeviceMetadataUpdated, error)

SyncUpdateDeviceMetadata sends update device metadata command to resource aggregate and wait for metadata updated event from eventbus.

func (*Client) SyncUpdateResource

func (c *Client) SyncUpdateResource(ctx context.Context, owner string, req *commands.UpdateResourceRequest) (*events.ResourceUpdated, error)

SyncUpdateResource sends update resource command to resource aggregate and wait for resource updated event from eventbus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL