option

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *Options)

func WithDataDate

func WithDataDate(date time.Time) Option

func WithDateEnd

func WithDateEnd(isEnd bool) Option

func WithHeaders

func WithHeaders(headers map[string]string) Option

func WithQueries

func WithQueries(queries map[string]string) Option

func WithRequestId

func WithRequestId(requestId string) Option

func WithScene

func WithScene(scene string) Option

func WithServerTimeout

func WithServerTimeout(timeout time.Duration) Option

func WithStage

func WithStage(stage string) Option

func WithTimeout

func WithTimeout(timeout time.Duration) Option

type Options

type Options struct {
	Timeout       time.Duration
	RequestId     string
	Headers       map[string]string
	DataDate      time.Time
	DataIsEnd     bool
	ServerTimeout time.Duration
	Stage         string
	Queries       map[string]string
	Scene         string
}

func Conv2Options

func Conv2Options(opts ...Option) *Options

Jump to

Keyboard shortcuts

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