# Functions
InheritCommandableGrpcController method are creates a new instance of the service.
InheritGrpcController methods are creates new instance NewGrpcController Parameters: - overrides a reference to child class that overrides virtual methods - serviceName string
service name from XYZ.pb.go, set "" for use default gRPC commandable protobuf Return *GrpcController.
NewGrpcEndpoint method are creates new instance of GrpcEndpoint.
# Structs
type MyCommandableGrpcController struct { *CommandableGrpcController }
func NewCommandableGrpcController() *CommandableGrpcController { c := DumMyCommandableGrpcController{} c.CommandableGrpcController = grpcservices.NewCommandableGrpcController("mycontroller") c.DependencyResolver.Put("service", cref.NewDescriptor("mygroup", "service", "default", "*", "*")) return &c }
controller := NewMyCommandableGrpcController(); controller.Configure(ctx, cconf.NewConfigParamsFromTuples(
"connection.protocol", "http", "connection.host", "localhost", "connection.port", "8080",
)); controller.SetReferences(ctx, cref.NewReferencesFromTuples(
cref.NewDescriptor("mygroup","controller","default","default","1.0"), service
));
opnErr := controller.Open(ctx)
if opnErr == nil { fmt.Println("The GRPC controller is running on port 8080"); }.
GrpcController abstract controller that receives remove calls via GRPC protocol.
GrpcEndpoint used for creating GRPC endpoints.
InvokeComandMediator Helper class for implements invoke method in CommandableGrpc.
# Interfaces
No description provided by the author
IRegisterable is interface to perform on-demand registrations.