util

package
v0.0.0-...-9750751 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferChan

func BufferChan(bSize int) chan *protocol.CalMessage

func CalHostname

func CalHostname(hostname string) string

func CalPort

func CalPort(port int) int

func Hostname

func Hostname() string

hostname returns the best available hostname. It tries in order: proper hostname, non-degenerate ip address, "localhost".

func NewBufioReader

func NewBufioReader(r io.Reader) *bufio.Reader

func NewBufioWriter

func NewBufioWriter(w io.Writer) *bufio.Writer

func Poolname

func Poolname(pName string) string

func PutBufioReader

func PutBufioReader(br *bufio.Reader)

func PutBufioWriter

func PutBufioWriter(bw *bufio.Writer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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