modules

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleBase

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

ModuleBase is an embeddable base for all UberFx modules

func NewModuleBase

func NewModuleBase(
	name string,
	service service.Host,
	roles []string,
) *ModuleBase

NewModuleBase configures a new ModuleBase

func (ModuleBase) Host

func (mb ModuleBase) Host() service.Host

Host returns the module's service host

func (ModuleBase) Name

func (mb ModuleBase) Name() string

Name returns the module's name

func (ModuleBase) Roles

func (mb ModuleBase) Roles() []string

Roles returns the module's roles

func (ModuleBase) Tracer

func (mb ModuleBase) Tracer() opentracing.Tracer

Tracer returns the module's service tracer

type ModuleConfig

type ModuleConfig struct {
	Roles []string `yaml:"roles"`
}

A ModuleConfig holds configuration for a mobule

type Option

type Option func(*service.ModuleCreateInfo) error

Option is a function that configures module creation

func WithName

func WithName(name string) Option

WithName is an option to set a module name

func WithRoles

func WithRoles(roles ...string) Option

WithRoles is an option to set module roles

Directories

Path Synopsis
rpc
Package rpc is the RPC Module.
Package rpc is the RPC Module.
thriftrw-plugin-thriftsync
Package main is the Overview.
Package main is the Overview.
Package task is the Asynchronous Task Execution Module.
Package task is the Asynchronous Task Execution Module.
Package uhttp is the HTTP Module.
Package uhttp is the HTTP Module.

Jump to

Keyboard shortcuts

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