internal

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

internal contains shared code for messaging packages.

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

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

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

Index

Constants

View Source
const (
	// Version is the semantic version of the library
	Version = "v0.1.1"
)

Variables

This section is empty.

Functions

func PtrBool

func PtrBool(toPtr bool) *bool

PtrBool takes a boolean and returns a pointer to that bool. For use in literal pointers, ptrBool(true) -> *bool

func PtrInt32

func PtrInt32(number int32) *int32

PtrInt32 takes a int32 and returns a pointer to that int32. For use in literal pointers, ptrInt32(1) -> *int32

func PtrInt64

func PtrInt64(number int64) *int64

PtrInt64 takes a int64 and returns a pointer to that int64. For use in literal pointers, ptrInt64(1) -> *int64

func PtrString

func PtrString(toPtr string) *string

PtrString takes a string and returns a pointer to that string. For use in literal pointers, PtrString(fmt.Sprintf("..", foo)) -> *string

func Retry

func Retry(times int, delay time.Duration, action func() (interface{}, error)) (interface{}, error)

Retry will attempt to retry an action a number of times if the action returns a retryable error

Types

type Retryable

type Retryable string

Retryable represents an error which should be able to be retried

func (Retryable) Error

func (r Retryable) Error() string

Error implementation for Retryable

Directories

Path Synopsis
Package aad provides an implementation of an Azure Active Directory JWT provider which implements TokenProvider from package auth for use with Azure Event Hubs and Service Bus.
Package aad provides an implementation of an Azure Active Directory JWT provider which implements TokenProvider from package auth for use with Azure Event Hubs and Service Bus.
Package auth provides an abstraction over claims-based security for Azure Event Hub and Service Bus.
Package auth provides an abstraction over claims-based security for Azure Event Hub and Service Bus.
Package rpc provides functionality for request / reply messaging.
Package rpc provides functionality for request / reply messaging.
Package sas provides SAS token functionality which implements TokenProvider from package auth for use with Azure Event Hubs and Service Bus.
Package sas provides SAS token functionality which implements TokenProvider from package auth for use with Azure Event Hubs and Service Bus.

Jump to

Keyboard shortcuts

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