api

package
Version: v0.0.0-...-fe7a427 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

type UserService struct {
	userSrv.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

UserService implements all the methods required by the grpc.UserServiceServer and embeds all the required dependencies

func NewUserService

func NewUserService(storage storage.Storage) *UserService

NewUserService returns a pointer to a new UserService with all its dependencies

func (UserService) Authenticate

AuthUser is a public interface of the service allowing to authenticate a user by its credentials

func (UserService) CreateUser

CreateUser receives the grpc request and handles user registration

func (UserService) GetUser

func (UserService) GetUserList

func (UserService) UpdateUser

AuthUser is a public interface of the service allowing to authenticate a user by its credentials

func (UserService) VerifySameOrgn

AuthUser is a public interface of the service allowing to authenticate a user by its credentials

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL