config

package
v0.0.0-...-1cbd5f8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2015 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Overview

Package handling the static configurations of the homeserver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// how the server should refer to itself for access from the internet
	// for federated traffic (e.g. matrix.org, or matrix.org:8000)
	Port     int    `json:"port"`
	Hostname string `json:"hostname"`

	// where the server should listen for connections...
	Listener string `json:"listener"`
	// ...and on which protocol (tcp4/tcp6/tcp).
	// We make this explicit as on OSX go creates both tcp4 and tcp6
	// listeners if you Listen on "tcp", "0.0.0.0:8008", despite
	// 0.0.0.0 being an IPv4 address.
	ListenerProtocol string `json:"listener-protocol"`

	DefaultPowerLevel        int64 `json:"default-power-level"`
	DefaultCreatorPowerLevel int64 `json:"default-creator-power-level"`
}
var Config Configuration

Jump to

Keyboard shortcuts

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