service

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 26 Imported by: 0

README

Service

Documentation

Index

Constants

View Source
const P2PProtoPrefix = "/x/"

Variables

ProviderSet is service providers.

Functions

func NewDockerCli

func NewDockerCli() (*client.Client, error)

Types

type ComputePowerService added in v0.0.3

type ComputePowerService struct {
	pb.UnimplementedComputePowerClientServer
	// contains filtered or unexported fields
}

func NewComputePowerService added in v0.0.3

func NewComputePowerService(ipfsShell *shell.Shell, client *client.Client, logger log.Logger) (*ComputePowerService, error)

func (*ComputePowerService) CancelExecPythonPackage added in v0.0.3

func (*ComputePowerService) RunPythonPackage added in v0.0.3

type GreeterService

type GreeterService struct {
	v1.UnimplementedGreeterServer
	// contains filtered or unexported fields
}

GreeterService is a greeter service.

func NewGreeterService

func NewGreeterService(uc *biz.GreeterUsecase) *GreeterService

NewGreeterService new a greeter service.

func (*GreeterService) SayHello

func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)

SayHello implements helloworld.GreeterServer.

type P2pService

type P2pService struct {
	pb.UnimplementedP2PServer
	// contains filtered or unexported fields
}

func NewP2pService

func NewP2pService(ipfsShell *shell.Shell) *P2pService

func (*P2pService) CloseListen

func (s *P2pService) CloseListen(ctx context.Context, req *pb.CloseListenRequest) (*pb.CloseListenReply, error)

func (*P2pService) CreateForward

func (s *P2pService) CreateForward(ctx context.Context, req *pb.CreateForwardRequest) (*pb.CreateForwardReply, error)

func (*P2pService) CreateListen

func (s *P2pService) CreateListen(ctx context.Context, req *pb.CreateListenRequest) (*pb.CreateListenReply, error)

func (*P2pService) ListListen

func (s *P2pService) ListListen(ctx context.Context, req *pb.ListListenRequest) (*pb.ListListenReply, error)

type VmService

type VmService struct {
	pb.UnimplementedVmServer
	// contains filtered or unexported fields
}

func NewVmService

func NewVmService(client *client.Client, logger log.Logger) *VmService

func (*VmService) CreateVm

func (s *VmService) CreateVm(ctx context.Context, req *pb.CreateVmRequest) (*pb.GetVmReply, error)

func (*VmService) DeleteVm

func (s *VmService) DeleteVm(ctx context.Context, req *pb.DeleteVmRequest) (*pb.DeleteVmReply, error)

func (*VmService) GetVm

func (s *VmService) GetVm(ctx context.Context, req *pb.GetVmRequest) (*pb.GetVmReply, error)

func (*VmService) ListVm

func (s *VmService) ListVm(ctx context.Context, req *pb.ListVmRequest) (*pb.ListVmReply, error)

func (*VmService) StartVm added in v0.0.2

func (s *VmService) StartVm(ctx context.Context, req *pb.GetVmRequest) (*pb.GetVmReply, error)

func (*VmService) StopVm added in v0.0.2

func (s *VmService) StopVm(ctx context.Context, req *pb.GetVmRequest) (*pb.GetVmReply, error)

type VmWebsocketHandler added in v0.0.2

type VmWebsocketHandler struct {
	// contains filtered or unexported fields
}

func NewVmWebsocketHandler added in v0.0.2

func NewVmWebsocketHandler(cli *client.Client) *VmWebsocketHandler

func (*VmWebsocketHandler) Terminal added in v0.0.2

func (handler *VmWebsocketHandler) Terminal(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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