client

package
v0.0.0-...-9db155e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = 15
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(uri string, headers map[string]string) *Client

Creates a new client object and sets the uri, default headers and creates a new httpClient to use for requests to the cfssl API.

func (Client) Ping

func (client Client) Ping() error

Send a http HEAD request to the cfssl uri to check so that the server is available.

Jump to

Keyboard shortcuts

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