configuration

package
v0.0.0-...-6db6f14 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Environment *Environment
	Session     *scs.SessionManager
	Logger      *zap.Logger
	Enforcer    *casbin.Enforcer
}

Configuration struct

func New

func New(session *scs.SessionManager, l *zap.Logger, e *casbin.Enforcer) *Configuration

New configuration construction

func (*Configuration) Listen

func (c *Configuration) Listen() string

Listen to address + port

type Environment

type Environment struct {
	Port    string
	Address string
}

Environment settings

Jump to

Keyboard shortcuts

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