server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingInterceptor added in v0.2.0

func LoggingInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)

LoggingInterceptor logs unary RPC details, including latency, errors, and conversation ID if present.

func StreamLoggingInterceptor added in v0.2.0

func StreamLoggingInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

StreamLoggingInterceptor logs stream RPC connection details and latency.

Types

type Server

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

Server implements the AXService gRPC service.

func New

func New(c *controller.Controller) *Server

New creates a new controller server.

func (*Server) Exec

Exec executes a new agentic task with streaming responses.

func (*Server) GracefulStop

func (s *Server) GracefulStop()

GracefulStop stops the gRPC server gracefully.

func (*Server) Serve

func (s *Server) Serve(address string, opts ...grpc.ServerOption) error

Serve starts the gRPC server on the specified address.

Jump to

Keyboard shortcuts

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