option

package
v0.0.0-...-5044e41 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 5 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultConsumer

func SetDefaultConsumer(consumer *state.Consumer)

func SetDefaultHTTPClient

func SetDefaultHTTPClient(c *http.Client)

Types

type EOSSettings

type EOSSettings struct {
	HTTPClient     *http.Client
	Consumer       *state.Consumer
	MaxTries       int
	ForceHTFSCheck bool
	HTFSDumpStats  bool
}

func DefaultSettings

func DefaultSettings() *EOSSettings

type Option

type Option interface {
	Apply(*EOSSettings)
}

func WithConsumer

func WithConsumer(consumer *state.Consumer) Option

func WithHTFSCheck

func WithHTFSCheck() Option

func WithHTFSDumpStats

func WithHTFSDumpStats() Option

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

func WithMaxTries

func WithMaxTries(maxTries int) Option

Jump to

Keyboard shortcuts

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