sabik

module
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0

README

sabik

CircleCI Go Report Card codecov

import(
    "github.com/tufin/sabik/client"
)

func handle(w http.ResponseWriter, r *http.Request) {
	// Your API Logic
}

logMiddleware := client.CreateMiddleware(client.Config{
		Domain:      "test",
		Project:     "me",
		Enable:      true,
		ServiceName: "my-svc",
		APIKey:      "my-key",
	}
http.Handle("/hello", logMiddleware.Handle(http.HandlerFunc(handle)))
Initialize using log middleware environment variables
- name: TUFIN_DOMAIN
  value: generic-bank
- name: TUFIN_PROJECT
  value: retail
- name: TUFIN_SERVICE_NAME
  value: customer
- name: TUFIN_ENABLE
  value: "true"
Tag new version
git tag v0.0.10
git push origin v0.0.10

Directories

Path Synopsis
env

Jump to

Keyboard shortcuts

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