test

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Timeout = 5 * time.Second
)

for test

Variables

This section is empty.

Functions

func NullLogger

func NullLogger() *log.Logger

NullLogger returns a instance of log.Logger

Types

type NullResponseWriter

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

NullResponseWriter is a struct

func NewNullResponseWriter

func NewNullResponseWriter() *NullResponseWriter

NewNullResponseWriter returns a instance of NullResponseWriter

func (*NullResponseWriter) Header

func (w *NullResponseWriter) Header() http.Header

Header returns headers

func (*NullResponseWriter) StatusCode

func (w *NullResponseWriter) StatusCode() int

StatusCode returns a status code

func (*NullResponseWriter) Write

func (w *NullResponseWriter) Write(p []byte) (int, error)

Write writes bytes to response writer

func (*NullResponseWriter) WriteHeader

func (w *NullResponseWriter) WriteHeader(statusCode int)

WriteHeader updates the status code

Jump to

Keyboard shortcuts

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