network

package
v0.0.0-...-f13fc7a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RolePluginHeader = "request-role"
)

Variables

This section is empty.

Functions

func GetFromResp

func GetFromResp(respObj *http.Response) (code int64, headers map[string]*protocol.HeaderVal, body []byte, err error)

func Request

func Request(method, url string, data []byte, headers map[string][]string) (*http.Response, error)

Types

type DummyPermissionMapper

type DummyPermissionMapper struct{}

type Network

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

func NewNetWork

func NewNetWork(sourceMessage, distinctMessage *protocol.PlatformMessage) *Network

func (*Network) Execute

func (n *Network) Execute()

type PermissionMapper

type PermissionMapper interface {
	Map(req *protocol.HttpRequestMessage, plugin *protocol.PluginInstanceDescriptor) *protocol.HttpRequestMessage
}

Jump to

Keyboard shortcuts

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