util

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCADataSource

func GetCADataSource(dbtype, datasource string, cacount int) string

GetCADataSource returns a datasource with a unqiue database name

func GetDBName

func GetDBName(datasource string) string

GetDBName gets database name from connection string

func GetError

func GetError(err error, getType string) error

GetError wraps error passed in with context

func IsGetError

func IsGetError(err error) bool

IsGetError returns true of if the error is for is a database get error (not found)

func MaskDBCred

func MaskDBCred(str string) string

MaskDBCred hides DB credentials in connection string

Types

type Levels

type Levels struct {
	Identity    int
	Affiliation int
	Certificate int
	Credential  int
	RAInfo      int
	Nonce       int
}

Levels contains the levels of identities, affiliations, and certificates

Jump to

Keyboard shortcuts

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