gomesh

package module
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternal = apierr.WithScope(-1, "the internal error", errorScope)
	ErrAgent    = apierr.WithScope(-2, "agent implement not found", errorScope)
	ErrExists   = apierr.WithScope(-3, "target resource exists", errorScope)
	ErrNotFound = apierr.WithScope(-3, "target resource not found", errorScope)
)

errors

Functions

This section is empty.

Types

type Extension

type Extension interface {
	Name() string // extension name
	Begin(config config.Config, builder MeshBuilder) error
	CreateSerivce(serviceName string, config config.Config) (Service, error)
	End() error
}

Extension gomesh service handle extension

type MeshBuilder

type MeshBuilder interface {
	RegisterService(extensionName string, serviceName string) error
	RegisterExtension(extension Extension) error
	Start(config config.Config) error
}

MeshBuilder .

func Builder

func Builder() MeshBuilder

Builder get mesh builder instance

type Runnable

type Runnable interface {
	Service
	Start() error
}

Runnable gomesh service base interface has nothing

type Service

type Service interface{}

Service gomesh service base interface has nothing

type ServiceRegisterEntry

type ServiceRegisterEntry struct {
	Name    string  // service name
	Service Service // service impl
}

ServiceRegisterEntry .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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