helpers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package helpers provides some helper functions for connectors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatErrorCode

func FormatErrorCode(conn, query string, err error) error

FormatErrorCode formats the error message

func NonBlockingErrSend

func NonBlockingErrSend(ctx context.Context, cerr chan<- error, err error)

NonBlockingErrSend sends the err to the error channel cerr on the way, where the block might be released via context

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer for a given string

func TimePtr

func TimePtr(t time.Time) *time.Time

TimePtr returns a pointer for a given time

Types

This section is empty.

Jump to

Keyboard shortcuts

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