Back to godoc.org

Package client

v0.1.9
Latest Go to latest

The latest major version is .

Published: May 14, 2020 | License: MIT | Module: git.sr.ht/~cco/go-integrator

Overview

Package client provides HTTP clients for accessing remote services.

Index

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

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

func StartClient

func StartClient(ctx *b.Context)

func Sync

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

type ClientState

type ClientState struct {
	ErrorLevel int
	SessionId  string
}

func (*ClientState) GetSessionMailbox

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier