ehttp

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 7 Imported by: 13

Documentation

Index

Constants

View Source
const PackageName = "client.ehttp"

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	*resty.Client
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Debug                        bool
	RawDebug                     bool
	Addr                         string
	ReadTimeout                  time.Duration
	SlowLogThreshold             time.Duration
	EnableAccessInterceptor      bool
	EnableAccessInterceptorReply bool
}

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig ...

type Container

type Container struct {
	// contains filtered or unexported fields
}

func DefaultContainer

func DefaultContainer() *Container

func Load

func Load(key string) *Container

func (*Container) Build

func (c *Container) Build(options ...Option) *Component

Build ...

type Option

type Option func(c *Container)

Jump to

Keyboard shortcuts

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