Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImpersonationService ¶
Types ¶
type GRPCClient ¶
type GRPCClient struct { Client pp.ImpersonationProviderClient Timeout time.Duration Closable io.Closer }
func (*GRPCClient) CanImpersonate ¶
func (*GRPCClient) Close ¶
func (p *GRPCClient) Close() error
type GRPCServer ¶
type GRPCServer struct { // This is the real implementation Impl model.ImpersonationProvider pp.UnimplementedImpersonationProviderServer }
Here is the gRPC server that GRPCClient talks to.
func (*GRPCServer) CanImpersonate ¶
func (s *GRPCServer) CanImpersonate(ctx context.Context, req *pp.CanImpersonateRequest) (*pp.CanImpersonateResponse, error)
func (*GRPCServer) Close ¶
func (s *GRPCServer) Close(ctx context.Context, _ *pp.CloseRequest) (*pp.CloseResponse, error)
Click to show internal directories.
Click to hide internal directories.