🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

bitbucket.org/mike-dev/api-derayah-standard-endpoints

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket.org/mike-dev/api-derayah-standard-endpoints

Source
Go
Version
v0.1.0
Version published
Created
Source

API Standard Endpoints

What is this repository for?

This repository collects all the standard endpoints implementation which could be used across all the go services. Current endpoints list:

  • /heartbeat
  • /info
ENV GOPRIVATE="bitbucket.org/mike-dev"

RUN export GIT_BRANCH_NAME=$(git log -n1 --decorate=short --pretty="tformat:%fd") && \
   GIT_COMMIT_ID=$(git rev-parse --short HEAD) && \
   GIT_COMMIT_TIME=$(git --no-pager log -1 --date=format:"%Y-%m-%d|%T" --format="%ad") && \
   GIT_TAGS=$( git tag --format="%(refname:short)," | sort -V | tr -d '\n' | sed 's/%//') && \
   go build -ldflags \
    '-X "'$GOPRIVATE'/api-derayah-standard-endpoints/constants.GitBranchName='$GIT_BRANCH_NAME'" \
     -X "'$GOPRIVATE'/api-derayah-standard-endpoints/constants.GitCommitID='$GIT_COMMIT_ID'" \
     -X "'$GOPRIVATE'/api-derayah-standard-endpoints/constants.GitCommitTime='$GIT_COMMIT_TIME'" \
     -X "'$GOPRIVATE'/api-derayah-standard-endpoints/constants.GitTags='$GIT_TAGS'"  main.go

FAQs

Package last updated on 23 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts