Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchScenarioPredicate ¶
func MatchScenarioPredicate(matched *types.APIKeyData, target *types.APIKeyData, requestCount uint64) bool
MatchScenarioPredicate checks if predicate match
func NopCloser ¶
func NopCloser(r *bytes.Reader) io.ReadSeekCloser
NopCloser returns a ReadCloser with a no-op Close method wrapping the provided Reader r. If r implements WriterTo, the returned ReadCloser will implement WriterTo by forwarding calls to r.
func ReadAll ¶
func ReadAll(body io.ReadCloser) (b []byte, reader io.ReadSeekCloser, err error)
ReadAll helper method
Types ¶
type ResetReader ¶
type ResetReader interface {
Reset() error
}
ResetReader is the interface for resetting reader
Click to show internal directories.
Click to hide internal directories.