pdhttp

package
v0.0.0-...-3903214 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHTTPSClient

func InitHTTPSClient(CAPath, CertPath, KeyPath string) error

InitHTTPSClient creates https client with ca file

func PutPlacementRules

func PutPlacementRules(rules []*placement.Rule) error

Types

type BodyOption

type BodyOption func(*bodyOption)

BodyOption sets the type and content of the body

func WithBody

func WithBody(contentType string, body io.Reader) BodyOption

WithBody returns a BodyOption

type DoFunc

type DoFunc func(endpoint string) error

DoFunc receives an endpoint which you can issue request to

Jump to

Keyboard shortcuts

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