https

package
v1.1.1-0...-40efbf4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromMap

func NewFromMap(node api.Node, t map[string]interface{}) api.Transport

NewFromMap : Makes a new instance of this transport module from a map of arguments (for deserialization support)

Types

type Module

type Module struct {
	Cert, Key []byte
	EccMode   bool
	// contains filtered or unexported fields
}

Module : HTTPS Implementation of a Transport module

func New

func New(certPem []byte, keyPem []byte, node api.Node, eccMode bool) *Module

New : Makes a new instance of this transport module

func (*Module) ByteLimit

func (h *Module) ByteLimit() int64

ByteLimit - get limit on bytes per bundle for this transport

func (*Module) HandleResponse

func (h *Module) HandleResponse(w http.ResponseWriter, r *http.Request, node api.Node, adminMode bool)

func (*Module) IsRunning

func (h *Module) IsRunning() bool

IsRunning - returns true if this node is running

func (*Module) Listen

func (h *Module) Listen(listen string, adminMode bool)

Listen : Server interface

func (*Module) MarshalJSON

func (h *Module) MarshalJSON() (b []byte, e error)

MarshalJSON : Create a serialied representation of the config of this module

func (*Module) Name

func (*Module) Name() string

Name : Returns this module's common name, which should be unique

func (*Module) OverrideServer

func (h *Module) OverrideServer(server *http.Server)

OverrideServer - override the http.Server object with one supplied by the caller

func (*Module) RPC

func (h *Module) RPC(host string, method api.Action, args ...interface{}) (interface{}, error)

RPC : client interface

func (*Module) SetByteLimit

func (h *Module) SetByteLimit(limit int64)

SetByteLimit - set limit on bytes per bundle for this transport

func (*Module) Stop

func (h *Module) Stop()

Stop : stops the HTTPS transport from running

Jump to

Keyboard shortcuts

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