orcclient

package
v0.0.0-...-b5a46b0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 19 Imported by: 0

README

orc-client: an Orc library to initialize and manage flags for sensible defaults for outgoing HTTPS to other Orc servers

Documentation

Index

Constants

This section is empty.

Variables

View Source
var M = &Module{}

Functions

This section is empty.

Types

type Client

type Client interface {
	Do(req *http.Request) (*http.Response, error)
	// CloseIdleConnections()
	Get(url string) (*http.Response, error)
	Head(url string) (*http.Response, error)
	Post(url, contentType string, body io.Reader) (*http.Response, error)
	PostForm(url string, data url.Values) (*http.Response, error)
}

type Config

type Config struct {
	RootCAs                     *x509.CertPool
	AllowOutboundOnlyToSuffixes []string
	OutboundRequestTimeout      time.Duration
}

type Module

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

func (*Module) ModuleName

func (m *Module) ModuleName() string

func (*Module) MustNew

func (m *Module) MustNew(name string) Client

func (*Module) New

func (m *Module) New(name string) (Client, error)

func (*Module) OnRegister

func (m *Module) OnRegister(hooks orc.ModuleHooks)

Jump to

Keyboard shortcuts

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