Files
coder/coderd/aibridged/client.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
631 B
Go
Raw Normal View History

2025-09-25 15:40:25 +02:00
package aibridged
import (
"context"
"storj.io/drpc"
"github.com/coder/coder/v2/coderd/aibridged/proto"
2025-09-25 15:40:25 +02:00
)
type Dialer func(ctx context.Context) (DRPCClient, error)
type ClientFunc func() (DRPCClient, error)
// DRPCClient is the union of various service interfaces the client must support.
type DRPCClient interface {
proto.DRPCRecorderClient
proto.DRPCMCPConfiguratorClient
proto.DRPCAuthorizerClient
}
var _ DRPCClient = &Client{}
type Client struct {
proto.DRPCRecorderClient
proto.DRPCMCPConfiguratorClient
proto.DRPCAuthorizerClient
Conn drpc.Conn
}
func (c *Client) DRPCConn() drpc.Conn {
return c.Conn
}