setting

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 2 Imported by: 4

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 added in v0.1.10

func (s *Setting) Chunked()

使用chunked数据

func (*Setting) Reset added in v0.1.7

func (s *Setting) Reset()

func (*Setting) SetDebug added in v0.3.1

func (s *Setting) SetDebug(b bool)

func (*Setting) SetTimeout added in v0.1.7

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