server

package
v0.0.0-...-9ff5533 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	userpb.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func New

func New(
	userStore *usermodel.UserStore,
	otpStorage *otpstorage.Storage,
	refreshStorage *refreshstorage.Storage,
	rabbitClient *rabbitclient.Client,
) *Server

func (*Server) ChangeUsername

func (*Server) GetProfile

func (*Server) Logout

func (s *Server) Logout(ctx context.Context, req *userpb.RefreshTokenRequest) (*userpb.Empty, error)

func (*Server) RefreshTokens

func (s *Server) RefreshTokens(ctx context.Context, req *userpb.RefreshTokenRequest) (*userpb.TokensResponse, error)

func (*Server) SendOtpEmail

func (*Server) Start

func (s *Server) Start(addr string) error

func (*Server) VerifyOtp

Jump to

Keyboard shortcuts

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