grpc

package
v0.0.0-...-b8bafe8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(config config.Config, logger log.Logger, handler *Handler)

Serve serves grpc server on given port

Types

type Handler

type Handler struct {
	rpc.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func New

func New(authService app.UseCase, logger log.Logger, jwt jwt.JWT) *Handler

func (*Handler) CheckToken

func (h *Handler) CheckToken(ctx context.Context, request *rpc.CheckTokenRequest) (*rpc.CheckTokenResponse, error)

func (*Handler) SignIn

func (h *Handler) SignIn(ctx context.Context, request *rpc.SignInRequest) (*rpc.SignInResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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