provider

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig() *util.ServiceConfig

Types

type Provider

type Provider interface {

	// GetFlow retrieves the flow definition for the specified id
	GetFlow(flowId string) (*definition.Definition, error)
	// AddCompressedFlow adds the flow for a specified id
	AddCompressedFlow(id string, flow string) error
	// AddUnCompressedFlow adds the flow for a specified id
	AddUncompressedFlow(id string, flow []byte) error
	// AddFlowURI adds the flow for a specified uri
	AddFlowURI(id string, uri string) error
}

Provider is the interface that describes an object that can provide flow definitions from a URI

type RemoteFlowProvider

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

RemoteFlowProvider is an implementation of FlowProvider service that can access flowes via URI

func NewRemoteFlowProvider

func NewRemoteFlowProvider() *RemoteFlowProvider

NewRemoteFlowProvider creates a RemoteFlowProvider

func (*RemoteFlowProvider) AddCompressedFlow

func (pps *RemoteFlowProvider) AddCompressedFlow(id string, flow string) error

func (*RemoteFlowProvider) AddFlowURI

func (pps *RemoteFlowProvider) AddFlowURI(id string, uri string) error

func (*RemoteFlowProvider) AddUncompressedFlow

func (pps *RemoteFlowProvider) AddUncompressedFlow(id string, flow []byte) error

func (*RemoteFlowProvider) GetFlow

func (pps *RemoteFlowProvider) GetFlow(id string) (*definition.Definition, error)

GetFlow implements flow.Provider.GetFlow

func (*RemoteFlowProvider) Name

func (pps *RemoteFlowProvider) Name() string

func (*RemoteFlowProvider) Start

func (pps *RemoteFlowProvider) Start() error

Start implements util.Managed.Start()

func (*RemoteFlowProvider) Stop

func (pps *RemoteFlowProvider) Stop() error

Stop implements util.Managed.Stop()

Jump to

Keyboard shortcuts

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