sabik

module
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0

README

sabik

CircleCI Go Report Card

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

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

logMiddleware := client.CreateMiddleware(client.MiddlewareConfig{
		Domain:      "test",
		Project:     "me",
		Enable:      true,
		ServiceName: "my-svc",
		APIKey:      "my-key",
	}
http.Handle("/hello", logMiddleware.Handle(http.HandlerFunc(handle)))
Env. Vars
- name: TUFIN_DOMAIN
  value: generic-bank
- name: TUFIN_PROJECT
  value: retail
- name: TUFIN_ENABLE
  value: "true"
- name: TUFIN_SERVICE_NAME  // optional
  value: customer
- name: TUFIN_URL  // optional
  value: https://persister-xiixymmvca-ew.a.run.app

Directories

Path Synopsis
env

Jump to

Keyboard shortcuts

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