Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTokenPayloadProvider ¶
Types ¶
type GRPCClient ¶
type GRPCClient struct { Client pp.PayloadProviderServiceClient Timeout time.Duration Closable io.Closer }
func (*GRPCClient) Close ¶
func (p *GRPCClient) Close() error
func (*GRPCClient) TokenPayloadForApp ¶
func (p *GRPCClient) TokenPayloadForApp(appId, appName, userID string) (map[string]interface{}, error)
type GRPCServer ¶
type GRPCServer struct { // This is the real implementation Impl model.TokenPayloadProvider pp.UnimplementedPayloadProviderServiceServer }
Here is the gRPC server that GRPCClient talks to.
func (*GRPCServer) Close ¶
func (s *GRPCServer) Close(ctx context.Context, _ *pp.CloseRequest) (*pp.CloseResponse, error)
func (*GRPCServer) TokenPayload ¶
func (s *GRPCServer) TokenPayload(ctx context.Context, request *pp.TokenPayloadRequest) (*pp.TokenPayloadResponse, error)
Click to show internal directories.
Click to hide internal directories.