options

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

Option is function set Options

func Endpoints

func Endpoints(endpoints []string) Option

Endpoints sets Endpoints to Options

func Prefix

func Prefix(prefix string) Option

Prefix sets Prefix to Options

func Timeout

func Timeout(timeout time.Duration) Option

Timeout sets Timeout to Options

type Options

type Options struct {
	Endpoints []string
	Timeout   time.Duration
	Prefix    string
}

Options for ETCD's Options

Jump to

Keyboard shortcuts

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