config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr        string
	Port        int
	RecvTimeout time.Duration
	SendTimeout time.Duration
}

func New

func New(addr string, port int, options ...Option) *Config

func (*Config) String

func (c *Config) String() string

type Option

type Option func(c *Config)

Option Pattern を実現するために用意

func WithRecvTimeout

func WithRecvTimeout(v time.Duration) Option

Option Pattern

func WithSendTimeout

func WithSendTimeout(v time.Duration) Option

Option Pattern

Jump to

Keyboard shortcuts

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