option

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdleTimeoutOption

type IdleTimeoutOption time.Duration

type ListenOption

type ListenOption struct {
	Network string
	Address string
}

type Option

type Option interface {
	// contains filtered or unexported methods
}

func IdleTimeout

func IdleTimeout(duration time.Duration) Option

func Listen

func Listen(network, address string) Option

func ListenIpAndPort

func ListenIpAndPort(ip string, port uint16) Option

func ListenPort

func ListenPort(port uint16) Option

func ListenTcp

func ListenTcp(addr string) Option

func ListenUnix

func ListenUnix(path string) Option

func ReadHeaderTimeout

func ReadHeaderTimeout(duration time.Duration) Option

func ReadTimeout

func ReadTimeout(duration time.Duration) Option

func WriteTimeout

func WriteTimeout(duration time.Duration) Option

type ReadHeaderTimeoutOption

type ReadHeaderTimeoutOption time.Duration

type ReadTimeoutOption

type ReadTimeoutOption time.Duration

type TlsOption

type TlsOption struct {
	Config *tls.Config
}

func (*TlsOption) Certificate

func (o *TlsOption) Certificate(certPem, keyPem []byte) *TlsOption

func (*TlsOption) ClientCa

func (o *TlsOption) ClientCa(caPem []byte) *TlsOption

type WriteTimeoutOption

type WriteTimeoutOption time.Duration

Jump to

Keyboard shortcuts

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