service

package
v0.0.0-...-c514986 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectFollowers

func ConnectFollowers() ([]*follower, []*follower)

ConnectFollowers attepmts to connect to all follower in the config

func CreateLab

func CreateLab(context context.Context, request *service.CreateLabRequest) (*service.CreateLabResponse, error)

func GetLab

func GetLab(context context.Context, request *service.GetLabRequest) (*service.GetLabResponse, error)

func GetLabs

func GetLabs(context context.Context, _request *service.GetLabsRequest) (*service.GetLabsResponse, error)

func Initialize

func Initialize()

func RemoveLab

func RemoveLab(context context.Context, request *service.RemoveLabRequest) (*service.RemoveLabResponse, error)

func Stop

func Stop()

Types

type Server

type Server struct {
	service.UnimplementedServiceServer
}

func (*Server) CreateLab

func (s *Server) CreateLab(ctx context.Context, request *service.CreateLabRequest) (*service.CreateLabResponse, error)

func (*Server) GetFrontends

func (*Server) GetLab

func (s *Server) GetLab(ctx context.Context, request *service.GetLabRequest) (*service.GetLabResponse, error)

func (*Server) GetLabs

func (s *Server) GetLabs(ctx context.Context, request *service.GetLabsRequest) (*service.GetLabsResponse, error)

func (*Server) GetServerMode

func (s *Server) GetServerMode(context context.Context, request *service.GetServerModeRequest) (*service.GetServerModeResponse, error)

func (*Server) GetServers

func (s *Server) GetServers(ctx context.Context, _ *emptypb.Empty) (*service.GetServersResponse, error)

func (*Server) HaveCapacity

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

func (*Server) RemoveLab

func (s *Server) RemoveLab(ctx context.Context, request *service.RemoveLabRequest) (*service.RemoveLabResponse, error)

func (*Server) RemoveLabs

Jump to

Keyboard shortcuts

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