client

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocation added in v0.0.13

func GetLocation() string

Types

type AbstractLogMiddleware added in v0.0.13

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

func (*AbstractLogMiddleware) Handle added in v0.0.13

func (lm *AbstractLogMiddleware) Handle(next http.Handler) http.Handler

type AsyncTaskLogMiddleware added in v0.0.13

type AsyncTaskLogMiddleware struct {
	AbstractLogMiddleware
	// contains filtered or unexported fields
}

type Config added in v0.0.10

type Config struct {
	Domain      string
	Project     string
	Enable      bool
	ServiceName string
	TufinURL    string
	APIKey      string
}

func NewConfig added in v0.0.10

func NewConfig() *Config

type DoNothingMiddleware added in v0.0.9

type DoNothingMiddleware struct{}

func (*DoNothingMiddleware) Handle added in v0.0.9

func (dnm *DoNothingMiddleware) Handle(next http.Handler) http.Handler

type LogMiddleware added in v0.0.9

type LogMiddleware struct {
	AbstractLogMiddleware
}

type Middleware

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

func CreateAsyncMiddleware added in v0.0.13

func CreateAsyncMiddleware(config *Config) Middleware

func CreateMiddleware

func CreateMiddleware(config *Config) 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)

Jump to

Keyboard shortcuts

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