json

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouterConfig

func CreateRouterConfig(strategy string) interface{}

func RegisterRouterConfig

func RegisterRouterConfig(strategy string, creator ConfigObjectCreator) error

Types

type ConfigObjectCreator

type ConfigObjectCreator func() interface{}

type RouterConfig

type RouterConfig struct {
	StrategyValue string          `json:"strategy"`
	SettingsValue json.RawMessage `json:"settings"`
}

func (*RouterConfig) Settings

func (this *RouterConfig) Settings() interface{}

func (*RouterConfig) Strategy

func (this *RouterConfig) Strategy() string

Jump to

Keyboard shortcuts

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