service

package
v0.0.0-...-f0a7105 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type AuthenticationService

type AuthenticationService struct {
	adminv1.AuthenticationServiceHTTPServer
	// contains filtered or unexported fields
}

func NewAuthenticationService

func NewAuthenticationService(logger log.Logger, uc userv1.UserServiceClient, utuc *cache.UserToken) *AuthenticationService

func (*AuthenticationService) GetMe

func (*AuthenticationService) Login

Login .

func (*AuthenticationService) Logout

Logout 登出

type UserService

type UserService struct {
	adminv1.UserServiceHTTPServer
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(logger log.Logger, uc userv1.UserServiceClient) *UserService

func (*UserService) CreateUser

func (s *UserService) CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.User, error)

func (*UserService) DeleteUser

func (s *UserService) DeleteUser(ctx context.Context, req *userv1.DeleteUserRequest) (*emptypb.Empty, error)

func (*UserService) GetUser

func (s *UserService) GetUser(ctx context.Context, req *userv1.GetUserRequest) (*userv1.User, error)

func (*UserService) GetUserByUserName

func (s *UserService) GetUserByUserName(ctx context.Context, req *userv1.GetUserByUserNameRequest) (*userv1.User, error)

func (*UserService) ListUser

func (*UserService) UpdateUser

func (s *UserService) UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.User, error)

func (*UserService) UserExists

Jump to

Keyboard shortcuts

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