Versions in this module Expand all Collapse all v0 v0.3.1 Dec 7, 2024 v0.3.0 Mar 3, 2024 Changes in this version + var ForceServerWithoutTLS = func() (*tls.Config, error) v0.2.0 Aug 24, 2019 Changes in this version + var NotChildProcessError error + func Serve(ctx context.Context, config *ServerConfig) error + type ClientConfig struct + Cmd *exec.Cmd + Handshake HandshakeConfig + ProtoVersions map[int]ClientVersion + StartTimeout time.Duration + Stderr io.Writer + TLSConfig *tls.Config + type ClientVersion interface + ClientProxy func(ctx context.Context, conn *grpc.ClientConn) (interface{}, error) + type ClientVersionFunc func(ctx context.Context, conn *grpc.ClientConn) (interface{}, error) + func (fn ClientVersionFunc) ClientProxy(ctx context.Context, conn *grpc.ClientConn) (interface{}, error) + type HandshakeConfig struct + CookieKey string + CookieValue string + type Plugin struct + func New(ctx context.Context, config *ClientConfig) (plugin *Plugin, err error) + func (p *Plugin) Client(ctx context.Context) (protoVersion int, client interface{}, err error) + func (p *Plugin) Close() error + type ServerConfig struct + Handshake HandshakeConfig + NoSignalHandlers bool + ProtoVersions map[int]ServerVersion + TLSConfig func() (*tls.Config, error) + type ServerVersion interface + RegisterServer func(*grpc.Server) error + type ServerVersionFunc func(*grpc.Server) error + func (fn ServerVersionFunc) RegisterServer(srv *grpc.Server) error