saferwall-api

module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0

README

saferwall Web APIs GoDoc Report Card GitHub Workflow Status (branch) codecov

Preface

This repository powers the web service API used in https://saferwall.com.

Vendoring

These packages are used in the project:

Folder Structure

This project follows the Standard Go Project Layout

  • build - contains packaging and Continuous Integration files.
  • cmd - contains the main function.
  • configs - contains configuration file templates or default configs.
  • docs - contains design and user documents.
  • db - contains database sql-like (n1ql) queries.
  • internal - contains private project specific code.
  • pkg - contains generic packages without project specific dependencies - these can be safely moved to other projects without internal dependencies.

Getting started

  • Install docker.
  • git clone https://github.com/saferwall/webapis.git.
  • Create a private.env in the root directory:
    # Used by docker-compose NSQ service when debugging a service locally and
    # using all the other services from docker-compose.
    EXTERNAL_IP=<your-host-ip>
    
  • Make sure make is installed and run make init.

References

Directories

Path Synopsis
cmd
dbsyncher module
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
internal
config
Package consumer implements the NSQ worker logic.
Package consumer implements the NSQ worker logic.
db
secure/token
Package token implements `TokenGenerator` for couchbase driver.
Package token implements `TokenGenerator` for couchbase driver.
pkg
log
Package log provides context-aware and structured logging capabilities.
Package log provides context-aware and structured logging capabilities.
pagination
Package pagination provides support for pagination requests and responses.
Package pagination provides support for pagination requests and responses.

Jump to

Keyboard shortcuts

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