grpc

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	pb.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func NewAuthHandler

func NewAuthHandler(uc *application.UseCases) *AuthHandler

func (*AuthHandler) GetUserDevices

func (h *AuthHandler) GetUserDevices(ctx context.Context, _ *pb.GetUserDevicesRequest) (_ *pb.GetUserDevicesResponse, err error)

func (*AuthHandler) Logout

func (h *AuthHandler) Logout(ctx context.Context, req *pb.LogoutRequest) (_ *pb.LogoutResponse, err error)

func (*AuthHandler) RenewAccessToken

func (h *AuthHandler) RenewAccessToken(ctx context.Context, req *pb.RenewAccessTokenRequest) (_ *pb.RenewAccessTokenResponse, err error)

func (*AuthHandler) Signin

func (h *AuthHandler) Signin(ctx context.Context, req *pb.SigninRequest) (_ *pb.SigninResponse, err error)

func (*AuthHandler) Signup

func (h *AuthHandler) Signup(ctx context.Context, req *pb.SignupRequest) (_ *pb.SignupResponse, err error)

type AuthInterceptor

type AuthInterceptor struct {
	// contains filtered or unexported fields
}

func NewAuthInterceptor

func NewAuthInterceptor(url string, creds credentials.TransportCredentials) (*AuthInterceptor, error)

NewAuthInterceptor returns a new AuthInterceptor

func (*AuthInterceptor) Unary

Unary returns a UnaryServerInterceptor that validates the access token and set the user id in the context

Jump to

Keyboard shortcuts

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