util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Body

func Body(filename string) string

func NewHttpClient

func NewHttpClient(c *config.Config) *http.Client

func TestConfig

func TestConfig(apiURL string) *config.Config

func TestServer

func TestServer(username, password string, testCases map[string]HttpTestCase) *httptest.Server

Types

type HttpTestCase

type HttpTestCase struct {
	HttpStatusCode int
	ResponseBody   string
	TestFunc       func(string)
}

Jump to

Keyboard shortcuts

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