log

package
v0.0.0-...-b767daf Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Config{
	OnConnected:    true,
	OnClose:        true,
	OnPingReceived: false,
	OnPongReceived: false,
	OnKeepalive:    false,
	Log:            log.Printf,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	OnConnected    bool
	OnClose        bool
	OnPingReceived bool
	OnPongReceived bool
	OnKeepalive    bool
	Log            func(fmt string, a ...any)
}

func SetClose

func SetClose(value bool) *Config

func SetConnected

func SetConnected(value bool) *Config

func SetKeepalive

func SetKeepalive(value bool) *Config

func SetLog

func SetLog(value func(fmt string, a ...any)) *Config

func SetPingReceived

func SetPingReceived(value bool) *Config

func SetPongReceived

func SetPongReceived(value bool) *Config

Jump to

Keyboard shortcuts

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