senv

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 26

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 UseStomp added in v1.0.13

func UseStomp() bool

UseStomp returns true is user wants STOMP frames instead of CONNECT

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.

Jump to

Keyboard shortcuts

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