Documentation ¶
Index ¶
- type Embed
- type Logger
- type Option
- func WithClientAddr(addr string) Option
- func WithCluster(cluster map[string]string) Option
- func WithClusterState(state string) Option
- func WithClusterToken(token string) Option
- func WithDir(dir string) Option
- func WithLogger(logger Logger) Option
- func WithMetrics(addr string, mode string) Option
- func WithName(name string) Option
- func WithPeerAddr(addr string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embed ¶
type Option ¶
type Option func(opts *Options)
func WithClientAddr ¶
func WithCluster ¶
func WithClusterState ¶
func WithClusterToken ¶
func WithLogger ¶
func WithMetrics ¶
func WithPeerAddr ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func DefaultOpts ¶
func DefaultOpts() *Options
Click to show internal directories.
Click to hide internal directories.