run

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package run contains the main Muxy entrypoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RawConfig  *plugo.RawConfig
	ConfigFile string // Path to YAML Configuration File
}

Config is the top-level configuration struct

type Muxy

type Muxy struct {
	// contains filtered or unexported fields
}

Muxy is the main orchestration component

func New

func New(config *Config) *Muxy

New creates a new Muxy instance

func NewWithDefaultConfig

func NewWithDefaultConfig() *Muxy

NewWithDefaultConfig creates a new Muxy instance with defaults

func (*Muxy) LoadPlugins

func (m *Muxy) LoadPlugins()

LoadPlugins loads all plugins dynamically and configures them

func (*Muxy) Run

func (m *Muxy) Run()

Run the mucking proxy!

type PluginConfig

type PluginConfig struct {
	Name        string
	Description string
	LogLevel    int `default:"2" required:"true" mapstructure:"loglevel"`
	Proxy       []plugo.PluginConfig
	Middleware  []plugo.PluginConfig
}

PluginConfig contains configuration for all plugins to Muxy

Jump to

Keyboard shortcuts

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