import (
cconf "github.com/pip-services3-gox/pip-services3-commons-gox/config"
cref "github.com/pip-services3-gox/pip-services3-commons-gox/refer"
crun "github.com/pip-services3-gox/pip-services3-commons-gox/run"
// ------------
cproc "github.com/pip-services3-gox/pip-services3-container-gox/container"
gbuild "github.com/pip-services3-gox/pip-services3-grpc-gox/build"
rbuild "github.com/pip-services3-gox/pip-services3-rpc-gox/build"
factory "github.com/pip-templates/pip-templates-microservice-go/build"
)
// Implements IConfigurable, IReferenceable, IUnreferenceable, IOpenable, IExecutable, INotifiable, ICleanable
type MyComponent struct{}
func (c *MyComponent) NewMyComponent() { /* Initialize the component */ }
func (c *MyComponent) Configure(ctx context.Context, config *cconf.ConfigParams) { /* configure the component */ }
func (c *MyComponent) SetReferences(ctx context.Context, refs cref.IReferences) { /* set component dependencies */ }
func (c *MyComponent) UnsetReferences() { /* unset component references */ }
func (c *MyComponent) IsOpen() bool { /* return the component open state */ }
func (c *MyComponent) Open(ctx context.Context, correlationId string) error { /* open the component */ }
func (c *MyComponent) Close(ctx context.Context, correlationId string) error { /* close the component */ }
func (c *MyComponent) Execute(ctx context.Context, correlationId string, args *crun.Parameters) error { /* execute the component transaction */
}
func (c *MyComponent) Notify(ctx context.Context, correlationId string, args *crun.Parameters) { /* notify the component about events */
}
func (c *MyComponent) Clear(ctx context.Context, correlationId string) error { /* clear the component state */ }