util

package
v0.0.0-...-d88ec87 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepandProtocolIfAbsent

func PrepandProtocolIfAbsent(url string) string

func SplitKeyIntoBucketKey

func SplitKeyIntoBucketKey(key string) (string, string, error)

SplitKeyIntoBucketKey splits a string into a bucket and key

Types

type ContextWithError

type ContextWithError struct {
	context.Context
	// contains filtered or unexported fields
}

ContextWithError is mutex protected context

func NewContextWithError

func NewContextWithError() *ContextWithError

NewContextWithError creates ContextWithError instance

func (*ContextWithError) CancelContext

func (context *ContextWithError) CancelContext(err error)

CancelContext cancels context

func (*ContextWithError) GetError

func (context *ContextWithError) GetError() error

GetError returns error

Jump to

Keyboard shortcuts

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