pipe

package module
v0.0.8-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 7 Imported by: 0

README

Pipe

Pipe is a Network Middleware Engine.
Split all functions into minimal and assemble according to configuration.

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

Documentation

Index

Constants

View Source
const (
	Name    = "Pipe"
	Version = "v0.0.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Components []interface{}
	Pipe       service.Service
	Init       []once.Once
}

type Pipe

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

func GetPipeWithContext

func GetPipeWithContext(ctx context.Context) (*Pipe, bool)

func NewPipeWithConfig

func NewPipeWithConfig(ctx context.Context, config []byte) (*Pipe, error)

func (*Pipe) Close

func (c *Pipe) Close() error

func (*Pipe) Config added in v0.0.3

func (c *Pipe) Config() []byte

func (*Pipe) Reload

func (c *Pipe) Reload(config []byte) error

func (*Pipe) Run

func (c *Pipe) Run() error

Jump to

Keyboard shortcuts

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