client

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 13 Imported by: 4

Documentation

Overview

Package client provides HTTP clients for accessing remote services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx *b.Context, spec m.Map, addr string, data map[string][]string) string

func PollStep

func PollStep(ctx *b.Context) (loop bool)

func PostData

func PostData(ctx *b.Context, spec m.Map, url string, pdata io.Reader) string

func PostMessage

func PostMessage(ctx *b.Context, spec m.Map, msg *b.Message) string

func PostStream added in v0.1.13

func PostStream(ctx *b.Context, spec m.Map, msg *b.Message,
	pdata io.Reader) string

func SendData

func SendData(ctx *b.Context, spec m.Map, msg *b.Message)

func SendMessage

func SendMessage(ctx *b.Context, spec m.Map, msg *b.Message)

func SetAuthentication

func SetAuthentication(ctx *b.Context, spec m.Map, req *http.Request)

Types

type ClientState added in v0.1.8

type ClientState struct {
	b.DefaultState
	ErrorLevel int
	SessionId  string
	Connection interface{}
}

Jump to

Keyboard shortcuts

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