callback

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReTryDuration = []scheduler.UnixTimeSecond{}/* 511 elements not displayed */

Functions

func Callback

func Callback(ctx context.Context, rawUrl httpc.RawURL, data *Request) (ok bool)

Types

type Request

type Request struct {
	TimePoint scheduler.UnixTimeSecond `json:"time_point"`
	Id        string                   `json:"id"`
}

* 1、id为任务添加时的id,透传 2、回调接收服务器需要满足幂等

Jump to

Keyboard shortcuts

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