server

package
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: BSD-3-Clause Imports: 50 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLogLevel added in v0.27.10

func ParseLogLevel(level string) proto.LogLevel

Types

type Server

type Server struct {
	proto.UnimplementedDaemonServiceServer
	// contains filtered or unexported fields
}

Server for service control.

func New

func New(ctx context.Context, configPath, logFile string) *Server

New server instance constructor.

func (*Server) CleanState added in v0.34.0

CleanState handles cleaning of states (performing cleanup operations)

func (*Server) DebugBundle added in v0.27.4

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) DeleteState added in v0.34.0

DeleteState handles deletion of states without cleanup

func (*Server) DeselectNetworks added in v0.35.0

DeselectNetworks deselects specific networks based on the client request.

func (*Server) Down

Down engine work in the daemon.

func (*Server) GetConfig

GetConfig of the daemon.

func (*Server) GetLogLevel added in v0.27.10

GetLogLevel gets the current logging level for the server.

func (*Server) ListNetworks added in v0.35.0

ListNetworks returns a list of all available networks.

func (*Server) ListStates added in v0.34.0

ListStates returns a list of all saved states

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) SelectNetworks added in v0.35.0

SelectNetworks selects specific networks based on the client request.

func (*Server) SetLogLevel added in v0.27.4

SetLogLevel sets the logging level for the server.

func (*Server) SetNetworkMapPersistence added in v0.34.0

SetNetworkMapPersistence sets the network map persistence for the server.

func (*Server) Start

func (s *Server) Start() error

func (*Server) Status

func (s *Server) Status(
	_ context.Context,
	msg *proto.StatusRequest,
) (*proto.StatusResponse, error)

Status returns the daemon status

func (*Server) Up

func (s *Server) Up(callerCtx context.Context, _ *proto.UpRequest) (*proto.UpResponse, error)

Up 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL