grpc

package
v0.0.0-...-e18e3fe Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	agent_external.AgentServiceClient
	Close func() error
}

func MakeClient

func MakeClient(host string, port int32) (*Client, error)

type Config

type Config struct {
	ListenAddr string
	Logger     *logrus.Logger
}

type Server

type Server struct {
	agent_external.UnimplementedAgentServiceServer

	ListenAddr string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(agent agent, conf *Config) *Server

func (*Server) Start

func (srv *Server) Start(ctx context.Context)

func (*Server) SubmitTask

func (srv *Server) SubmitTask(ctx context.Context, request *agent_external.SubmitTaskRequest) (*agent_external.SubmitTaskResponse, error)

Jump to

Keyboard shortcuts

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