setting

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setting

type Setting struct {
	// debug相关字段
	debug.Options
	// 控制是否使用空值
	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) SetDebug

func (s *Setting) SetDebug(b bool)

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