service

package
v0.0.0-...-e895604 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedAccessServiceServer
}

Access struct

func (*Access) List

List access

type Auth

type Auth struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedAuthServiceServer
}

Auth struct

func (*Auth) ChangePassword

func (u *Auth) ChangePassword(ctx context.Context, in *users.ChangePasswordRequest) (*users.Message, error)

ChangePassword service

func (*Auth) ForgotPassword

func (u *Auth) ForgotPassword(ctx context.Context, in *users.ForgotPasswordRequest) (*users.Message, error)

ForgotPassword service

func (*Auth) IsAuth

func (u *Auth) IsAuth(ctx context.Context, in *users.MyString) (*users.MyBoolean, error)

IsAuth service

func (*Auth) Login

func (u *Auth) Login(ctx context.Context, in *users.LoginRequest) (*users.LoginResponse, error)

Login service

func (*Auth) ResetPassword

func (u *Auth) ResetPassword(ctx context.Context, in *users.ResetPasswordRequest) (*users.Message, error)

ResetPassword service

type Branch

type Branch struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedBranchServiceServer
}

Branch struct

func (*Branch) Create

func (u *Branch) Create(ctx context.Context, in *users.Branch) (*users.Branch, error)

Create new branch

func (*Branch) Delete

func (u *Branch) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete branch

func (*Branch) List

List branches

func (*Branch) Update

func (u *Branch) Update(ctx context.Context, in *users.Branch) (*users.Branch, error)

Update branch

func (*Branch) View

func (u *Branch) View(ctx context.Context, in *users.Id) (*users.Branch, error)

View branch

type Company

type Company struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedCompanyServiceServer
}

Company struct

func (*Company) Registration

Registration new company

func (*Company) Update

func (u *Company) Update(ctx context.Context, in *users.Company) (*users.Company, error)

Update Company

func (*Company) View

func (u *Company) View(ctx context.Context, in *users.Id) (*users.Company, error)

View Company

type Employee

type Employee struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedEmployeeServiceServer
}

Employee struct

func (*Employee) Create

func (u *Employee) Create(ctx context.Context, in *users.Employee) (*users.Employee, error)

Create Employee

func (*Employee) Delete

func (u *Employee) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete Employee

func (*Employee) List

List Employee

func (*Employee) Update

func (u *Employee) Update(ctx context.Context, in *users.Employee) (*users.Employee, error)

Update Employee

func (*Employee) View

func (u *Employee) View(ctx context.Context, in *users.Id) (*users.Employee, error)

View Employee

type Feature

type Feature struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedFeatureServiceServer
}

Feature struct

func (*Feature) List

List feature

type Group

type Group struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedGroupServiceServer
}

Group struct

func (*Group) Create

func (u *Group) Create(ctx context.Context, in *users.Group) (*users.Group, error)

Create Group

func (*Group) Delete

func (u *Group) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete Group

func (*Group) GrantAccess

func (u *Group) GrantAccess(ctx context.Context, in *users.GrantAccessRequest) (*users.Message, error)

GrantAccess Group

func (*Group) List

List Group

func (*Group) RevokeAccess

func (u *Group) RevokeAccess(ctx context.Context, in *users.GrantAccessRequest) (*users.Message, error)

RevokeAccess Group

func (*Group) Update

func (u *Group) Update(ctx context.Context, in *users.Group) (*users.Group, error)

Update Group

func (*Group) View

func (u *Group) View(ctx context.Context, in *users.Id) (*users.Group, error)

View Group

type PackageFeature

type PackageFeature struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedPackageFeatureServiceServer
}

PackageFeature struct

func (*PackageFeature) List

List PackageFeature

func (*PackageFeature) View

View Package Feature

type Region

type Region struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedRegionServiceServer
}

Region struct

func (*Region) Create

func (u *Region) Create(ctx context.Context, in *users.Region) (*users.Region, error)

Create new region

func (*Region) Delete

func (u *Region) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete Region

func (*Region) List

List Region

func (*Region) Update

func (u *Region) Update(ctx context.Context, in *users.Region) (*users.Region, error)

Update region

func (*Region) View

func (u *Region) View(ctx context.Context, in *users.Id) (*users.Region, error)

View Region

type User

type User struct {
	Db    *sql.DB
	Cache *redis.Cache
	users.UnimplementedUserServiceServer
}

User struct

func (*User) Create

func (u *User) Create(ctx context.Context, in *users.User) (*users.User, error)

Create func

func (*User) Delete

func (u *User) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete func

func (*User) GetByToken

func (u *User) GetByToken(ctx context.Context, in *users.MyEmpty) (*users.User, error)

GetByToken func

func (*User) List

List func

func (*User) Update

func (u *User) Update(ctx context.Context, in *users.User) (*users.User, error)

Update func

func (*User) View

func (u *User) View(ctx context.Context, in *users.Id) (*users.User, error)

View func

Jump to

Keyboard shortcuts

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