utils

package
v0.0.0-...-9514a38 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(ConnName string) *mongo.Client

GetClient return a MongoDB Client. This function gets client via uri defined in arapgp.server.json, then, tries to connect target database, and ping it to make sure connection built successfully.

func Hash

func Hash(input string) (val string)

Hash is a tool function

Types

This section is empty.

Jump to

Keyboard shortcuts

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