context

package
v0.0.0-...-f5108b3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Curl

func Curl(ctx context.Context, url string) error

curl, ctx 都是函数的第一个参数

func DoPayment

func DoPayment(ctx context.Context)

执行Payment的操作, 主流程 payment goroutine, cancel 监听外部信号

func Payment

func Payment(
	ctx context.Context,
	tk string,
) error

1. 用户认证 Login() tk ---> 用户的身份 2. 转账 Payment()

Types

type UserName

type UserName struct{}

type UserRole

type UserRole struct{}

Jump to

Keyboard shortcuts

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