server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRouter

func DefaultRouter() *mux.Router

func ListenAndServe

func ListenAndServe(router *mux.Router, opts ...Option) error

func ListenAndServeWithContext

func ListenAndServeWithContext(ctx context.Context, router *mux.Router, opts ...Option) error

Types

type Option

type Option func(cfg *config)

func EnableDTLSListener

func EnableDTLSListener(network, addr string, cb dtls.PSKCallback) Option

func EnableTCPListener

func EnableTCPListener(network, addr string) Option

func EnableUDPListener

func EnableUDPListener(network, addr string) Option

func WithLogger

func WithLogger(l logging.LeveledLogger) Option

Jump to

Keyboard shortcuts

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