util

package
v0.0.0-...-83b165b Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Overview

Package util provides utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPRequestEq

func HTTPRequestEq(expected *http.Request) gomock.Matcher

HTTPRequestEq returns a matcher that compares http.Request instants. Only Method, URL, Body, and Header are taken into account.

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient is an interface of net/http's Client.

type ReadCloser

type ReadCloser interface{ io.ReadCloser }

ReadCloser is io.ReadCloser, which is just for generating mock.

type UUID

type UUID [16]byte

UUID represents UUID

func NewUUID

func NewUUID() UUID

NewUUID generates a new UUID that complies with UUIDv4

func (UUID) String

func (uuid UUID) String() string

Jump to

Keyboard shortcuts

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