Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInternal = errors.New("the internal error", errors.WithVendor(errVendor)) ErrAgent = errors.New("agent implement not found", errors.WithVendor(errVendor)) ErrExists = errors.New("target resource exists", errors.WithVendor(errVendor)) ErrNotFound = errors.New("target resource not found", errors.WithVendor(errVendor)) )
errors
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension interface { Name() string // extension name Begin(config scf4go.Config, builder MeshBuilder) error CreateSerivce(serviceName string, config scf4go.Config) (Service, error) End() error }
Extension smf4go service handle extension
type MeshBuilder ¶
type MeshBuilder interface { RegisterService(extensionName string, serviceName string) error RegisterExtension(extension Extension) error Start(config scf4go.Config) error FindService(name string, service interface{}) }
MeshBuilder .
func NewMeshBuilder ¶ added in v0.0.2
func NewMeshBuilder() MeshBuilder
NewMeshBuilder create new mesh builder
type ServiceRegisterEntry ¶
ServiceRegisterEntry .
Click to show internal directories.
Click to hide internal directories.