utilities

package
v0.0.0-...-828e842 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2015 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIP

func GetIP(r *http.Request) string

GetIP retrieves the IP address from an http.Request

Types

type SrvConfiguration

type SrvConfiguration struct {
	AuthDbConnectionString string              `json:"authDb"`
	QueueConnectionUrl     string              `json:"queueUrl"`
	StorageDbParams        cassandraParameters `json:"storageDb"`
}

SrvConfiguration represents a container with the server's configuration

func LoadJSONConfig

func LoadJSONConfig() (*SrvConfiguration, error)

LoadJSONConfig returns a SrvConfiguration struct from a json file

Jump to

Keyboard shortcuts

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