helper

package
v0.0.0-...-95bfc10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessConditionMapping

func AccessConditionMapping(accessCondition string) string

AccessConditionMapping ...

func CheckIfPaused

func CheckIfPaused(retries int, redisClient *redis.Client) (bool, error)

CheckIfPaused ...

func CheckKalliope

func CheckKalliope(id string) bool

CheckKalliope ...

func CheckOpac

func CheckOpac(id string) bool

CheckOpac ...

func ClassifcationMappingDE

func ClassifcationMappingDE(classifcation string) string

ClassifcationMappingDE ...

func Contains

func Contains(arr []string, el string) bool

Contains ... check if the slice contains the value

func DeriveWork

func DeriveWork(id string) string

DeriveWork ...

func GetLogToXLinkMap

func GetLogToXLinkMap(structlink types.Structlink) (map[string]types.LogToPhysLink, map[string]types.PhysToLogLink)

GetLogToXLinkMap ...

func GetMinMaxStartPhys

func GetMinMaxStartPhys(logToPhysLink types.LogToPhysLink, physicalIDToAttrMap map[string]types.PhysicalAttributes) (int64, int64, string, string)

GetMinMaxStartPhys ...

func GetMongoClient

func GetMongoClient() *mongo.Client

GetMongoClient ...

func GetNumberFromPPNID

func GetNumberFromPPNID(recordID string) string

GetNumberFromPPNID ...

func GetNumberFromXID

func GetNumberFromXID(id string) int64

GetNumberFromXID ...

func ListContainsStringItem

func ListContainsStringItem(item string) bool

ListContainsStringItem ...

func MonthMapping

func MonthMapping(month string) string

MonthMapping ...

func Prettyprint

func Prettyprint(b []byte) ([]byte, error)

Prettyprint ...

func ProcessFile

func ProcessFile(fileName string, vars interface{}) string

ProcessFile parses the supplied filename and compiles its template using the given variables.

func ProcessString

func ProcessString(str string, vars interface{}) string

ProcessString parses the supplied string and compiles it using the given variables.

func ProductToFtypeMapping

func ProductToFtypeMapping(product string) string

ProductToFtypeMapping ...

func StrctypeLabelMapping

func StrctypeLabelMapping(strctypeLabel string) string

StrctypeLabelMapping ...

func StrctypeMapping

func StrctypeMapping(strctype string) string

StrctypeMapping ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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