grpcserver

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssistantClient added in v1.1.1

type AssistantClient interface {
	GenerateResponse(ctx context.Context, newMessage *structs.PromptMessage, historyMessages []*structs.PromptMessage) (string, error)
}

type AssistantService

type AssistantService struct {
	structs.UnimplementedAssistantServiceServer
	// contains filtered or unexported fields
}

func NewService

func NewService(asst AssistantClient) *AssistantService

func (*AssistantService) Chat

type Server

type Server struct {
	structs.UnimplementedAssistantServiceServer
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer(asst AssistantClient, opts ...ServerOption) (*Server, error)

func (*Server) Run

func (s *Server) Run(addr string) error

func (*Server) Stop

func (s *Server) Stop()

type ServerOption added in v1.1.0

type ServerOption func(*serverConfig)

func WithCA added in v1.1.0

func WithCA(caPath string) ServerOption

func WithKeepalive added in v1.1.0

func WithKeepalive(params keepalive.ServerParameters) ServerOption

func WithMaxMsgSize added in v1.1.0

func WithMaxMsgSize(recvSize, sendSize int) ServerOption

func WithTLS added in v1.1.0

func WithTLS(certPath, keyPath string) ServerOption

Jump to

Keyboard shortcuts

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