Versions in this module Expand all Collapse all v0 v0.1.0 Feb 27, 2024 Changes in this version + type AddConnectionToGroupOptions struct + type AddConnectionToGroupResponse struct + type AddConnectionsToGroupsOptions struct + type AddConnectionsToGroupsResponse struct + type AddToGroupsRequest struct + Filter *string + Groups []string + func (a *AddToGroupsRequest) UnmarshalJSON(data []byte) error + func (a AddToGroupsRequest) MarshalJSON() ([]byte, error) + type AddUserToGroupOptions struct + type AddUserToGroupResponse struct + type CheckPermissionOptions struct + TargetName *string + type CheckPermissionResponse struct + type Client struct + func NewClient(endpoint string, credential azcore.TokenCredential, options *ClientOptions) (*Client, error) + func NewClientFromConnectionString(connectionString string, options *ClientOptions) (*Client, error) + func (c *Client) GenerateClientAccessURL(ctx context.Context, hub string, options *GenerateClientAccessURLOptions) (*GenerateClientAccessURLResponse, error) + func (client *Client) AddConnectionToGroup(ctx context.Context, hub string, group string, connectionID string, ...) (AddConnectionToGroupResponse, error) + func (client *Client) AddConnectionsToGroups(ctx context.Context, hub string, groupsToAdd AddToGroupsRequest, ...) (AddConnectionsToGroupsResponse, error) + func (client *Client) AddUserToGroup(ctx context.Context, hub string, group string, userID string, ...) (AddUserToGroupResponse, error) + func (client *Client) CloseAllConnections(ctx context.Context, hub string, options *CloseAllConnectionsOptions) (CloseAllConnectionsResponse, error) + func (client *Client) CloseConnection(ctx context.Context, hub string, connectionID string, ...) (CloseConnectionResponse, error) + func (client *Client) CloseGroupConnections(ctx context.Context, hub string, group string, ...) (CloseGroupConnectionsResponse, error) + func (client *Client) CloseUserConnections(ctx context.Context, hub string, userID string, ...) (CloseUserConnectionsResponse, error) + func (client *Client) GrantPermission(ctx context.Context, hub string, permission Permission, connectionID string, ...) (GrantPermissionResponse, error) + func (client *Client) RemoveConnectionFromAllGroups(ctx context.Context, hub string, connectionID string, ...) (RemoveConnectionFromAllGroupsResponse, error) + func (client *Client) RemoveConnectionFromGroup(ctx context.Context, hub string, group string, connectionID string, ...) (RemoveConnectionFromGroupResponse, error) + func (client *Client) RemoveConnectionsFromGroups(ctx context.Context, hub string, groupsToRemove RemoveFromGroupsRequest, ...) (RemoveConnectionsFromGroupsResponse, error) + func (client *Client) RemoveUserFromAllGroups(ctx context.Context, hub string, userID string, ...) (RemoveUserFromAllGroupsResponse, error) + func (client *Client) RemoveUserFromGroup(ctx context.Context, hub string, group string, userID string, ...) (RemoveUserFromGroupResponse, error) + func (client *Client) RevokePermission(ctx context.Context, hub string, permission Permission, connectionID string, ...) (RevokePermissionResponse, error) + func (client *Client) SendToAll(ctx context.Context, hub string, contentType ContentType, ...) (SendToAllResponse, error) + func (client *Client) SendToConnection(ctx context.Context, hub string, connectionID string, contentType ContentType, ...) (SendToConnectionResponse, error) + func (client *Client) SendToGroup(ctx context.Context, hub string, group string, contentType ContentType, ...) (SendToGroupResponse, error) + func (client *Client) SendToUser(ctx context.Context, hub string, userID string, contentType ContentType, ...) (SendToUserResponse, error) + type ClientOptions struct + type CloseAllConnectionsOptions struct + Excluded []string + Reason *string + type CloseAllConnectionsResponse struct + type CloseConnectionOptions struct + Reason *string + type CloseConnectionResponse struct + type CloseGroupConnectionsOptions struct + Excluded []string + Reason *string + type CloseGroupConnectionsResponse struct + type CloseUserConnectionsOptions struct + Excluded []string + Reason *string + type CloseUserConnectionsResponse struct + type ConnectionExistsOptions struct + type ConnectionExistsResponse struct + type ContentType string + const ContentTypeApplicationJSON + const ContentTypeApplicationOctetStream + const ContentTypeTextPlain + func PossibleContentTypeValues() []ContentType + type GenerateClientAccessURLOptions struct + ExpirationTimeInMinutes int32 + Groups []string + Roles []string + UserID string + type GenerateClientAccessURLResponse struct + BaseURL string + Token string + URL string + type GenerateClientTokenOptions struct + Group []string + MinutesToExpire *int32 + Role []string + UserID *string + type GenerateClientTokenResponse struct + type GrantPermissionOptions struct + TargetName *string + type GrantPermissionResponse struct + type GroupExistsOptions struct + type GroupExistsResponse struct + type Permission string + const PermissionJoinLeaveGroup + const PermissionSendToGroup + func PossiblePermissionValues() []Permission + type RemoveConnectionFromAllGroupsOptions struct + type RemoveConnectionFromAllGroupsResponse struct + type RemoveConnectionFromGroupOptions struct + type RemoveConnectionFromGroupResponse struct + type RemoveConnectionsFromGroupsOptions struct + type RemoveConnectionsFromGroupsResponse struct + type RemoveFromGroupsRequest struct + Filter *string + Groups []string + func (r *RemoveFromGroupsRequest) UnmarshalJSON(data []byte) error + func (r RemoveFromGroupsRequest) MarshalJSON() ([]byte, error) + type RemoveUserFromAllGroupsOptions struct + type RemoveUserFromAllGroupsResponse struct + type RemoveUserFromGroupOptions struct + type RemoveUserFromGroupResponse struct + type RevokePermissionOptions struct + TargetName *string + type RevokePermissionResponse struct + type SendToAllOptions struct + Excluded []string + Filter *string + MessageTTLSeconds *int32 + type SendToAllResponse struct + type SendToConnectionOptions struct + MessageTTLSeconds *int32 + type SendToConnectionResponse struct + type SendToGroupOptions struct + Excluded []string + Filter *string + MessageTTLSeconds *int32 + type SendToGroupResponse struct + type SendToUserOptions struct + Filter *string + MessageTTLSeconds *int32 + type SendToUserResponse struct + type TokenResponse struct + Token *string + func (c *TokenResponse) UnmarshalJSON(data []byte) error + func (c TokenResponse) MarshalJSON() ([]byte, error) + type UserExistsOptions struct + type UserExistsResponse struct