api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(ctx *core.Context, conf *config.Config, req *request.Request) error

Types

type BatchReqCall

type BatchReqCall struct {
	ReqCallDos []*ReqCallDone
	// contains filtered or unexported fields
}

func NewBatchReqCall

func NewBatchReqCall(errorCallback ErrorCallback, reqCalls ...ReqCaller) *BatchReqCall

func (*BatchReqCall) Do

func (c *BatchReqCall) Do() *BatchReqCall

type ErrorCallback

type ErrorCallback = func(reqCall ReqCaller, err error)

type ReqCallDone

type ReqCallDone struct {
	Result interface{}
	Err    interface{}
	// contains filtered or unexported fields
}

type ReqCaller

type ReqCaller interface {
	Ctx() *core.Context
	Do() (interface{}, error)
}

Directories

Path Synopsis
core

Jump to

Keyboard shortcuts

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