Documentation ¶
Index ¶
- func ParseLogLevel(level string) proto.LogLevel
- type Server
- func (s *Server) DebugBundle(_ context.Context, req *proto.DebugBundleRequest) (resp *proto.DebugBundleResponse, err error)
- func (s *Server) DeselectRoutes(_ context.Context, req *proto.SelectRoutesRequest) (*proto.SelectRoutesResponse, error)
- func (s *Server) Down(_ context.Context, _ *proto.DownRequest) (*proto.DownResponse, error)
- func (s *Server) GetConfig(_ context.Context, _ *proto.GetConfigRequest) (*proto.GetConfigResponse, error)
- func (s *Server) GetLogLevel(_ context.Context, _ *proto.GetLogLevelRequest) (*proto.GetLogLevelResponse, error)
- func (s *Server) ListRoutes(ctx context.Context, req *proto.ListRoutesRequest) (*proto.ListRoutesResponse, error)
- func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*proto.LoginResponse, error)
- func (s *Server) SelectRoutes(_ context.Context, req *proto.SelectRoutesRequest) (*proto.SelectRoutesResponse, error)
- func (s *Server) SetLogLevel(_ context.Context, req *proto.SetLogLevelRequest) (*proto.SetLogLevelResponse, error)
- func (s *Server) Start() error
- func (s *Server) Status(_ context.Context, msg *proto.StatusRequest) (*proto.StatusResponse, error)
- func (s *Server) Up(callerCtx context.Context, _ *proto.UpRequest) (*proto.UpResponse, error)
- func (s *Server) WaitSSOLogin(callerCtx context.Context, msg *proto.WaitSSOLoginRequest) (*proto.WaitSSOLoginResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLogLevel ¶
Types ¶
type Server ¶
type Server struct { proto.UnimplementedDaemonServiceServer // contains filtered or unexported fields }
Server for service control.
func (*Server) DebugBundle ¶
func (s *Server) DebugBundle(_ context.Context, req *proto.DebugBundleRequest) (resp *proto.DebugBundleResponse, err error)
DebugBundle creates a debug bundle and returns the location.
func (*Server) DeselectRoutes ¶
func (s *Server) DeselectRoutes(_ context.Context, req *proto.SelectRoutesRequest) (*proto.SelectRoutesResponse, error)
DeselectRoutes deselects specific routes based on the client request.
func (*Server) Down ¶
func (s *Server) Down(_ context.Context, _ *proto.DownRequest) (*proto.DownResponse, error)
Down engine work in the daemon.
func (*Server) GetConfig ¶
func (s *Server) GetConfig(_ context.Context, _ *proto.GetConfigRequest) (*proto.GetConfigResponse, error)
GetConfig of the daemon.
func (*Server) GetLogLevel ¶
func (s *Server) GetLogLevel(_ context.Context, _ *proto.GetLogLevelRequest) (*proto.GetLogLevelResponse, error)
GetLogLevel gets the current logging level for the server.
func (*Server) ListRoutes ¶
func (s *Server) ListRoutes(ctx context.Context, req *proto.ListRoutesRequest) (*proto.ListRoutesResponse, error)
ListRoutes returns a list of all available routes.
func (*Server) Login ¶
func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*proto.LoginResponse, error)
Login uses setup key to prepare configuration for the daemon.
func (*Server) SelectRoutes ¶
func (s *Server) SelectRoutes(_ context.Context, req *proto.SelectRoutesRequest) (*proto.SelectRoutesResponse, error)
SelectRoutes selects specific routes based on the client request.
func (*Server) SetLogLevel ¶
func (s *Server) SetLogLevel(_ context.Context, req *proto.SetLogLevelRequest) (*proto.SetLogLevelResponse, error)
SetLogLevel sets the logging level for the server.
func (*Server) Status ¶
func (s *Server) Status( _ context.Context, msg *proto.StatusRequest, ) (*proto.StatusResponse, error)
Status returns the daemon status
func (*Server) WaitSSOLogin ¶
func (s *Server) WaitSSOLogin(callerCtx context.Context, msg *proto.WaitSSOLoginRequest) (*proto.WaitSSOLoginResponse, error)
WaitSSOLogin uses the userCode to validate the TokenInfo and waits for the user to continue with the login on a browser