Skip to content

A collection of reusable Golang code to provide functionality to OpenSight backend services

License

Notifications You must be signed in to change notification settings

greenbone/opensight-golang-libraries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greenbone Logo

OpenSight GoLang libraries

GitHub releases

About

The code maintained in this repository is used by the Greenbone OpenSight Backend Components written in GoLang.

The following functionalities are provided:

  • configReader - reads the configuration based on environment variables with predefined defaults
  • dbcrypt - provides encryption / decryption for fields of entities persisted with GORM
  • errorResponses - rest api models for errors
  • jobQueue - a simple job queue
  • notifications - a client to send notifications to the openSight Notification Service
  • openSearch - a client and extension functions to query openSearch - suited for the query package
  • postgres - provides utilities for building conditional queries for PostgreSQL databases
  • query - provides basic selector and response objects for requests, including filter, paging and sorting
  • retryableRequest - provides function to execute a http request with retries on failures
  • secretfiles - helps with accessing secrets stored in files
  • slices - utility functions for slices
  • testFolder - access to test data from the file system

Maintainer

This project is maintained by Greenbone AG

Contributing

Your contributions are highly appreciated. Please create a pull request on GitHub. Bigger changes need to be discussed with the development team via the issues section at GitHub first.

License

Copyright (C) 2022-2023 Greenbone AG

Licensed under the GNU General Public License v3.0 or later.