server

package
v0.0.0-...-e6af7e3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2016 License: LGPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SHOULD_WAIT   bool = true
	GEN_UNIQUE_ID      = ""
)

Functions

func Trap

func Trap()

Types

type CombaineServer

type CombaineServer struct {
	Configuration   CombaineServerConfig
	CombainerConfig configs.CombainerConfig

	configs.Repository
	cache.Cache
	*combainer.Context
	// contains filtered or unexported fields
}

func NewCombainer

func NewCombainer(config CombaineServerConfig) (*CombaineServer, error)

func (*CombaineServer) GetContext

func (c *CombaineServer) GetContext() *combainer.Context

func (*CombaineServer) GetRepository

func (c *CombaineServer) GetRepository() configs.Repository

func (*CombaineServer) Serve

func (c *CombaineServer) Serve() error

type CombaineServerConfig

type CombaineServerConfig struct {
	// Configuration
	// path to directory with combaine.yaml
	ConfigsPath string
	// period of the locks rechecking
	Period time.Duration
	// Addrto listen for incoming http REST API requests
	RestEndpoint string
	//
	Active bool
}

Jump to

Keyboard shortcuts

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