Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServiceClient ¶ added in v0.0.5
type AuthServiceClient struct {
// contains filtered or unexported fields
}
AuthServiceClient provides methods to interact with the auth-service
func NewAuthServiceClient ¶ added in v0.0.5
func NewAuthServiceClient(logger *zap.Logger) *AuthServiceClient
NewAuthServiceClient creates a new auth service client
func (*AuthServiceClient) GetSpaceUserIDs ¶ added in v0.0.5
func (c *AuthServiceClient) GetSpaceUserIDs(ctx context.Context, orgSlug, spaceID string) ([]string, error)
GetSpaceUserIDs fetches all user IDs in a space from the auth-service API
type DeviceEntityTemplate ¶ added in v0.0.5
type DeviceEntityTemplate struct {
Key string `json:"key"`
UniqueID string `json:"unique_id"`
ModelKey string `json:"model_key"`
EntityType string `json:"entity_type"`
Category string `json:"category"`
Name string `json:"name"`
UnitOfMeas string `json:"unit_of_measurement"`
Icon string `json:"icon"`
DisplayType []string `json:"display_type"`
}
type DeviceServiceClient ¶
type DeviceServiceClient struct {
// contains filtered or unexported fields
}
DeviceServiceClient handles communication with device-service
func NewDeviceServiceClient ¶
func NewDeviceServiceClient(logger *zap.Logger) *DeviceServiceClient
NewDeviceServiceClient creates a new device service client
func (*DeviceServiceClient) GetDeviceSpaceByDeviceID ¶
func (c *DeviceServiceClient) GetDeviceSpaceByDeviceID(ctx context.Context, deviceID, organization, spaceID string) (*DeviceSpaceInfo, error)
GetDeviceSpaceByDeviceID fetches device space information by device ID Uses the device-spaces endpoint with device_id query parameter
type DeviceSpaceInfo ¶
type DeviceSpaceInfo struct {
ID string `json:"id"`
Name string `json:"name"`
SpaceID string `json:"space_id,omitempty"`
SpaceSlug string `json:"space_slug,omitempty"`
}
DeviceSpaceInfo represents device space information from device-service
type GetSpaceUsersResponse ¶ added in v0.0.5
type GetSpaceUsersResponse struct {
SpaceID string `json:"space_id"`
SpaceName string `json:"space_name"`
UserIDs []string `json:"user_ids"`
TotalUsers int `json:"total_users"`
}
GetSpaceUsersResponse represents the response from the auth-service API
type TransformerServiceClient ¶ added in v0.0.5
type TransformerServiceClient struct {
// contains filtered or unexported fields
}
func NewTransformerServiceClient ¶ added in v0.0.5
func NewTransformerServiceClient(logger *zap.Logger) *TransformerServiceClient
func (*TransformerServiceClient) GetDeviceEntityTemplates ¶ added in v0.0.5
func (c *TransformerServiceClient) GetDeviceEntityTemplates(ctx context.Context, deviceModelID string) ([]DeviceEntityTemplate, error)
Click to show internal directories.
Click to hide internal directories.