client

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvKeyServiceName = "TUFIN_SABIK_SERVICE_NAME"
	EnvKeyTufinURL    = "TUFIN_SABIK_URL"
	EnvKeyEnable      = "TUFIN_SABIK_ENABLE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyMiddleware

type EmptyMiddleware struct{}

func (*EmptyMiddleware) Handle

func (sm *EmptyMiddleware) Handle(next http.Handler) http.Handler

type Middleware

type Middleware interface {
	Handle(next http.Handler) http.Handler
}

func CreateMiddleware

func CreateMiddleware() Middleware

type ResponseRecorder

type ResponseRecorder struct {
	Body       *bytes.Buffer
	StatusCode int
	// contains filtered or unexported fields
}

func NewResponseRecorder

func NewResponseRecorder(writer http.ResponseWriter) *ResponseRecorder

func (*ResponseRecorder) Header

func (rw *ResponseRecorder) Header() http.Header

func (*ResponseRecorder) Write

func (rw *ResponseRecorder) Write(buf []byte) (int, error)

func (*ResponseRecorder) WriteHeader

func (rw *ResponseRecorder) WriteHeader(statusCode int)

type SabikMiddleware

type SabikMiddleware struct {
	// contains filtered or unexported fields
}

func (*SabikMiddleware) Handle

func (sm *SabikMiddleware) Handle(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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