grpc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	pb.UnimplementedFunctionServiceServer
	// contains filtered or unexported fields
}

Service represents the gRPC service

func NewService

func NewService(registry *function.Registry) *Service

NewService creates a new gRPC service

func (*Service) ExecuteFunction

func (s *Service) ExecuteFunction(ctx context.Context, req *pb.ExecuteFunctionRequest) (*pb.ExecuteFunctionResponse, error)

ExecuteFunction executes a function

func (*Service) ListFunctions

func (s *Service) ListFunctions(ctx context.Context, req *pb.ListFunctionsRequest) (*pb.ListFunctionsResponse, error)

ListFunctions lists all available functions

func (*Service) Start

func (s *Service) Start(port int) error

Start starts the gRPC server

func (*Service) Stop

func (s *Service) Stop()

Stop stops the gRPC server

Jump to

Keyboard shortcuts

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