client

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 12 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 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)

func SetSession added in v0.1.8

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

func StartClient added in v0.1.8

func StartClient(ctx *b.Context)

func Sync added in v0.1.8

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

Types

type ClientState added in v0.1.8

type ClientState struct {
	ErrorLevel int
	SessionId  string
}

func (*ClientState) GetSessionMailbox added in v0.1.8

func (st *ClientState) GetSessionMailbox(string) chan b.Message

Jump to

Keyboard shortcuts

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