usersvc

package
v0.0.0-...-839fe76 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserSvc

type UserSvc struct {
	// contains filtered or unexported fields
}

UserSvc encapsulates dependencies and data required to implement the pb.UserServer interface.

func New

func New(relDb *sql.DB, driver string, offset uint64) (*UserSvc, error)

New returns a pointer to a UserSvc instance or an error.

func (*UserSvc) AddRole

func (s *UserSvc) AddRole(ctx context.Context, req *pb.AddRoleReq) (*pb.RoleResp, error)

AddRole implements part of the pb.UserServer interface.

func (*UserSvc) AddUser

func (s *UserSvc) AddUser(ctx context.Context, req *pb.AddUserReq) (*pb.UserResp, error)

AddUser implements part of the pb.UserServer interface.

func (*UserSvc) FndRoles

func (s *UserSvc) FndRoles(ctx context.Context, req *pb.FndRolesReq) (*pb.RolesResp, error)

FndRoles implements part of the pb.UserServer interface.

func (*UserSvc) FndUsers

func (s *UserSvc) FndUsers(ctx context.Context, req *pb.FndUsersReq) (*pb.UsersResp, error)

FndUsers implements part of the pb.UserServer interface.

func (*UserSvc) MigrationData

func (s *UserSvc) MigrationData() (string, map[string][]byte)

MigrationData ...

func (*UserSvc) OvrUser

func (s *UserSvc) OvrUser(ctx context.Context, req *pb.OvrUserReq) (*pb.UserResp, error)

OvrUser implements part of the pb.UserServer interface.

func (*UserSvc) RegisterWithGRPCServer

func (s *UserSvc) RegisterWithGRPCServer(g *grpc.Server) error

RegisterWithGRPCServer implements the grpcsrv.Registerable interface.

func (*UserSvc) Regularize

func (s *UserSvc) Regularize(ctx context.Context) error

Regularize ...

func (*UserSvc) RmvUser

func (s *UserSvc) RmvUser(ctx context.Context, req *pb.RmvUserReq) (*pb.RmvUserResp, error)

RmvUser implements part of the pb.UserServer interface.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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