Skip to content

holdex/hp-backend-lib

Repository files navigation

Holdex Platform Backend Go Utility Library

This public library contains methods that are useful for applications using Holdex Platform API.

Middleware functions to check authorization for HTTP request
Functions to (set/get) specific information in context variables

Date util (check is two dates are equal )

d1 := date.Date{Year: 2011, Month: 1, Day: 1}
d2 := date.Date{Year: 2011, Month: 1, Day: 1}
if libdate.Equal(d1, d2) {
    fmt.Print("dates are equal")
}

Functions to create specific reason for errors
  1. Parse multi-part form data files
  2. Decode / Encode file
Initializer function for grpc server
Oauth middleware
Functions to parse HTTP request/response, return custom errors
generate unique uuid, used for test practice

id := libid.GenerateUniqueID()

Service to create & parse jwt tokens
Functions to marshal/unmarshal json structure ignoring the error
Custom logger handler built on top of grpc logger
Functions to encrypt password & check hash matching
Initializer function for sql connection via postgres driver
Binary plugin to generate GQL enum types from proto message
Function to setup rollbar
Functions to check strings (length, equality, matching)
Functions used for to check aggregate status

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published