setting

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setting

type Setting struct {
	// 控制是否使用空值
	NotIgnoreEmpty bool

	//是否自动加ContentType
	NoAutoContentType bool

	//超时时间
	Timeout time.Duration

	// 目前用作SetTimeout 和 WithContext是互斥
	// index是自增id,主要给互斥API定优先级
	// 对于互斥api,后面的会覆盖前面的
	Index int

	//当前time 的index
	TimeoutIndex int

	UseChunked bool
}

设置

func (*Setting) Chunked

func (s *Setting) Chunked()

使用chunked数据

func (*Setting) Reset

func (s *Setting) Reset()

func (*Setting) SetTimeout

func (s *Setting) SetTimeout(d time.Duration)

Jump to

Keyboard shortcuts

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