eh

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.

Index

Constants

View Source
const ErrCondGeoReplicationOffset = amqp.ErrCond("com.microsoft:georeplication:invalid-offset")

ErrCondGeoReplicationOffset occurs when using an old integer offset against a hub that has geo-replication enabled, which requires the new stroffset format.

Variables

This section is empty.

Functions

func ConvertToInt64

func ConvertToInt64(intValue any) (int64, bool)

ConvertToInt64 converts any int-like value to be an int64.

func IsGeoReplicationOffsetError

func IsGeoReplicationOffsetError(err error) bool

IsGeoReplicationOffsetError checks if we've received a "bad offset" error from Event Hubs. This should only happpen if:

a. You're working with an Event Hub namespace that has geo-replication enabled...
b. ...and pass in an older style offset rather than the newer "stroffset" style (contains broker and partition information).

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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