Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCServer ¶
type GRPCServer struct { ChatCompletionStreamUseCase chatcompletionstream.ChatCompletionUseCase ChatConfigStream chatcompletionstream.ChatCompletionConfigInputDto ChatService service.ChatService Port string AuthToken string StreamChannel chan chatcompletionstream.ChatCompletionOutputDto }
func NewGRPCServer ¶
func NewGRPCServer(chatCompletionStreamUseCase chatcompletionstream.ChatCompletionUseCase, chatConfigStream chatcompletionstream.ChatCompletionConfigInputDto, port, authToken string, streamChannel chan chatcompletionstream.ChatCompletionOutputDto) *GRPCServer
func (*GRPCServer) AuthInterceptor ¶
func (g *GRPCServer) AuthInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
func (*GRPCServer) Start ¶
func (g *GRPCServer) Start() error
Click to show internal directories.
Click to hide internal directories.