Documentation ¶
Index ¶
- type UserServer
- func (server *UserServer) CreateUser(ctx context.Context, req *uspbv1.CreateUserRequest) (*uspbv1.CreateUserResponse, error)
- func (server *UserServer) GetUserDevices(ctx context.Context, req *uspbv1.GetUserDevicesRequest) (*uspbv1.GetUserDevicesResponse, error)
- func (server *UserServer) LoginUser(ctx context.Context, req *uspbv1.LoginUserRequest) (*uspbv1.LoginUserResponse, error)
- func (server *UserServer) RenewTokens(ctx context.Context, req *uspbv1.RenewTokensRequest) (*uspbv1.RenewTokensResponse, error)
- func (server *UserServer) UpdateUser(ctx context.Context, req *uspbv1.UpdateUserRequest) (*uspbv1.UpdateUserResponse, error)
- func (server *UserServer) VerifyEmail(ctx context.Context, req *uspbv1.VerifyEmailRequest) (*uspbv1.VerifyEmailResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserServer ¶
type UserServer struct { uspbv1.UnimplementedUserServiceServer // contains filtered or unexported fields }
UserServer serves gRPC requests for User endpoints.
func NewUserServer ¶
func NewUserServer(config *conf.DataEnv, gojo db.Gojo, tokenMaker token.Maker, taskDistributor worker.TaskDistributor) *UserServer
func (*UserServer) CreateUser ¶
func (server *UserServer) CreateUser(ctx context.Context, req *uspbv1.CreateUserRequest) (*uspbv1.CreateUserResponse, error)
func (*UserServer) GetUserDevices ¶
func (server *UserServer) GetUserDevices(ctx context.Context, req *uspbv1.GetUserDevicesRequest) (*uspbv1.GetUserDevicesResponse, error)
func (*UserServer) LoginUser ¶
func (server *UserServer) LoginUser(ctx context.Context, req *uspbv1.LoginUserRequest) (*uspbv1.LoginUserResponse, error)
func (*UserServer) RenewTokens ¶
func (server *UserServer) RenewTokens(ctx context.Context, req *uspbv1.RenewTokensRequest) (*uspbv1.RenewTokensResponse, error)
func (*UserServer) UpdateUser ¶
func (server *UserServer) UpdateUser(ctx context.Context, req *uspbv1.UpdateUserRequest) (*uspbv1.UpdateUserResponse, error)
func (*UserServer) VerifyEmail ¶
func (server *UserServer) VerifyEmail(ctx context.Context, req *uspbv1.VerifyEmailRequest) (*uspbv1.VerifyEmailResponse, error)
Click to show internal directories.
Click to hide internal directories.