Documentation ¶
Index ¶
- type AuthClient
- func (m AuthClient) GetAccessToken(ctx context.Context, in *pb.GetAccessTokenRequest, opts ...grpc.CallOption) (*pb.GetAccessTokenResponse, error)
- func (m AuthClient) GetValidationKeySet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (pb.AuthService_GetValidationKeySetClient, error)
- func (m AuthClient) SignIn(ctx context.Context, in *pb.SignInRequest, opts ...grpc.CallOption) (*pb.SignInResponse, error)
- func (m AuthClient) SignOut(ctx context.Context, in *pb.SignOutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- func (m AuthClient) TranslateAccessToken(ctx context.Context, opts ...grpc.CallOption) (pb.AuthService_TranslateAccessTokenClient, error)
- type AuthStreamClient
- func (m AuthStreamClient) CloseSend() error
- func (m AuthStreamClient) Context() context.Context
- func (m AuthStreamClient) Header() (metadata.MD, error)
- func (m AuthStreamClient) Recv() (*pb.TranslateAccessTokenResponse, error)
- func (m AuthStreamClient) RecvMsg(msg any) error
- func (m AuthStreamClient) Send(r *pb.TranslateAccessTokenRequest) error
- func (m AuthStreamClient) SendMsg(msg any) error
- func (m AuthStreamClient) Trailer() metadata.MD
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
func NewAuthClient ¶
func NewAuthClient() AuthClient
func (AuthClient) GetAccessToken ¶
func (m AuthClient) GetAccessToken(ctx context.Context, in *pb.GetAccessTokenRequest, opts ...grpc.CallOption) (*pb.GetAccessTokenResponse, error)
func (AuthClient) GetValidationKeySet ¶
func (m AuthClient) GetValidationKeySet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (pb.AuthService_GetValidationKeySetClient, error)
func (AuthClient) SignIn ¶
func (m AuthClient) SignIn(ctx context.Context, in *pb.SignInRequest, opts ...grpc.CallOption) (*pb.SignInResponse, error)
Upon successful login user receives a refresh_token. When it expires or is revoked user has to login again.
func (AuthClient) SignOut ¶
func (m AuthClient) SignOut(ctx context.Context, in *pb.SignOutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
SignOut revokes user's active refresh_token.
func (AuthClient) TranslateAccessToken ¶
func (m AuthClient) TranslateAccessToken(ctx context.Context, opts ...grpc.CallOption) (pb.AuthService_TranslateAccessTokenClient, error)
type AuthStreamClient ¶
func NewAuthStreamClient ¶
func NewAuthStreamClient() AuthStreamClient
func (AuthStreamClient) CloseSend ¶
func (m AuthStreamClient) CloseSend() error
func (AuthStreamClient) Context ¶
func (m AuthStreamClient) Context() context.Context
func (AuthStreamClient) Recv ¶
func (m AuthStreamClient) Recv() (*pb.TranslateAccessTokenResponse, error)
func (AuthStreamClient) RecvMsg ¶
func (m AuthStreamClient) RecvMsg(msg any) error
func (AuthStreamClient) Send ¶
func (m AuthStreamClient) Send(r *pb.TranslateAccessTokenRequest) error
func (AuthStreamClient) SendMsg ¶
func (m AuthStreamClient) SendMsg(msg any) error
func (AuthStreamClient) Trailer ¶
func (m AuthStreamClient) Trailer() metadata.MD
Click to show internal directories.
Click to hide internal directories.