util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 9 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(token string, testCases []HttpTestCase) *httptest.Server

Types

type HttpTestCase

type HttpTestCase struct {
	Method string
	Path   string
	Code   int
	Body   string
	Test   func(string)
}

Jump to

Keyboard shortcuts

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