Givc-agent Go-API
givc-agent
Section titled “givc-agent”import "givc/modules/cmd/givc-agent"The GIVC agent is a service that allows remote management of systemd units and applications.
The built-in gRPC server listens for commands from the GIVC admin server (or other instances) and executes them on the local system. Configuration is loaded from a JSON file specified via command-line arguments.
- func StartEventService(ctx context.Context, wg *sync.WaitGroup, config *givc_config.AgentConfig)
- func StartSocketService(ctx context.Context, wg *sync.WaitGroup, agentConfig *givc_config.AgentConfig)
- func main()
- func setupGRPCServices(agentEndpointConfig *givc_types.EndpointConfig, config *givc_config.AgentConfig) ([]givc_types.GrpcServiceRegistration, *givc_servicemanager.SystemdControlServer, error)
func StartEventService
Section titled “func StartEventService”func StartEventService(ctx context.Context, wg *sync.WaitGroup, config *givc_config.AgentConfig)func StartSocketService
Section titled “func StartSocketService”func StartSocketService(ctx context.Context, wg *sync.WaitGroup, agentConfig *givc_config.AgentConfig)func main
Section titled “func main”func main()Main function of the GIVC agent.
func setupGRPCServices
Section titled “func setupGRPCServices”func setupGRPCServices(agentEndpointConfig *givc_types.EndpointConfig, config *givc_config.AgentConfig) ([]givc_types.GrpcServiceRegistration, *givc_servicemanager.SystemdControlServer, error)setupGRPCServices creates and configures all required and optional GRPC services
Generated by gomarkdoc