senv

package
Version: v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Helper package for stompngo users.

Extract commonly used data elements from the environment, and expose this data to users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dest added in v1.0.2

func Dest() string

Destination

func Heartbeats added in v1.0.2

func Heartbeats() string

Heartbeats returns client requested heart beat values.

func Host

func Host() string

Host returns a default connection hostname.

func HostAndPort

func HostAndPort() (string, string)

HostAndPort returns a default host and port (useful for Dial).

func Login

func Login() string

Login returns a default login ID.

func MaxBodyLength added in v1.0.6

func MaxBodyLength() int

func Nmsgs added in v1.0.2

func Nmsgs() int

Number of messages

func Passcode

func Passcode() string

Passcode returns a default passcode.

func Persistent added in v1.0.3

func Persistent() bool

True if persistent messages are desired.

func Port

func Port() string

Port returns a default connection port.

func Protocol

func Protocol() string

Protocol returns a default level.

func SubChanCap added in v1.0.3

func SubChanCap() int

func Vhost

func Vhost() string

Vhost returns a default vhost name.

func WantLogger added in v1.0.10

func WantLogger() string

Optional set logger during connection start

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL