mocks

package
v0.0.0-...-a6f3d4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct {
	*mock.Mock
}

func NewAuthClient

func NewAuthClient() AuthClient

func (AuthClient) GetAccessToken

func (AuthClient) GetValidationKeySet

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

type AuthStreamClient struct {
	*mock.Mock
}

func NewAuthStreamClient

func NewAuthStreamClient() AuthStreamClient

func (AuthStreamClient) CloseSend

func (m AuthStreamClient) CloseSend() error

func (AuthStreamClient) Context

func (m AuthStreamClient) Context() context.Context

func (AuthStreamClient) Header

func (m AuthStreamClient) Header() (metadata.MD, error)

func (AuthStreamClient) Recv

func (AuthStreamClient) RecvMsg

func (m AuthStreamClient) RecvMsg(msg any) error

func (AuthStreamClient) Send

func (AuthStreamClient) SendMsg

func (m AuthStreamClient) SendMsg(msg any) error

func (AuthStreamClient) Trailer

func (m AuthStreamClient) Trailer() metadata.MD

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL