options

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerOption

type ServerOption struct {
	Host   string
	Port   int
	Mode   string
	Consul *consul.Client
}

ServerOption

type ServerOptional

type ServerOptional func(s *ServerOption)

ServerOptional

func WithConsul

func WithConsul(c *consul.Client) ServerOptional

WithConsul

func WithHost added in v0.0.6

func WithHost(h string) ServerOptional

WithHost

func WithMode added in v0.0.6

func WithMode(m string) ServerOptional

WithMode

func WithPort added in v0.0.6

func WithPort(p int) ServerOptional

WithPort

Jump to

Keyboard shortcuts

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