Documentation ¶
Index ¶
- type Server
- func (s *Server) Down(ctx context.Context, msg *proto.DownRequest) (*proto.DownResponse, error)
- func (s *Server) GetConfig(ctx context.Context, msg *proto.GetConfigRequest) (*proto.GetConfigResponse, error)
- func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*proto.LoginResponse, 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, msg *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 ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { proto.UnimplementedDaemonServiceServer // contains filtered or unexported fields }
Server for service control.
func (*Server) Down ¶
func (s *Server) Down(ctx context.Context, msg *proto.DownRequest) (*proto.DownResponse, error)
Down engine work in the daemon.
func (*Server) GetConfig ¶
func (s *Server) GetConfig(ctx context.Context, msg *proto.GetConfigRequest) (*proto.GetConfigResponse, error)
GetConfig of the daemon.
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) Status ¶
func (s *Server) Status( _ context.Context, msg *proto.StatusRequest, ) (*proto.StatusResponse, error)
Status starts engine work in the daemon.
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
Click to show internal directories.
Click to hide internal directories.