Documentation ¶
Index ¶
- type Access
- type Auth
- func (u *Auth) ChangePassword(ctx context.Context, in *users.ChangePasswordRequest) (*users.Message, error)
- func (u *Auth) ForgotPassword(ctx context.Context, in *users.ForgotPasswordRequest) (*users.Message, error)
- func (u *Auth) IsAuth(ctx context.Context, in *users.MyString) (*users.MyBoolean, error)
- func (u *Auth) Login(ctx context.Context, in *users.LoginRequest) (*users.LoginResponse, error)
- func (u *Auth) ResetPassword(ctx context.Context, in *users.ResetPasswordRequest) (*users.Message, error)
- type Branch
- func (u *Branch) Create(ctx context.Context, in *users.Branch) (*users.Branch, error)
- func (u *Branch) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)
- func (u *Branch) List(in *users.ListBranchRequest, stream users.BranchService_ListServer) error
- func (u *Branch) Update(ctx context.Context, in *users.Branch) (*users.Branch, error)
- func (u *Branch) View(ctx context.Context, in *users.Id) (*users.Branch, error)
- type Company
- type Employee
- func (u *Employee) Create(ctx context.Context, in *users.Employee) (*users.Employee, error)
- func (u *Employee) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)
- func (u *Employee) List(in *users.ListEmployeeRequest, stream users.EmployeeService_ListServer) error
- func (u *Employee) Update(ctx context.Context, in *users.Employee) (*users.Employee, error)
- func (u *Employee) View(ctx context.Context, in *users.Id) (*users.Employee, error)
- type Feature
- type Group
- func (u *Group) Create(ctx context.Context, in *users.Group) (*users.Group, error)
- func (u *Group) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)
- func (u *Group) GrantAccess(ctx context.Context, in *users.GrantAccessRequest) (*users.Message, error)
- func (u *Group) List(in *users.ListGroupRequest, stream users.GroupService_ListServer) error
- func (u *Group) RevokeAccess(ctx context.Context, in *users.GrantAccessRequest) (*users.Message, error)
- func (u *Group) Update(ctx context.Context, in *users.Group) (*users.Group, error)
- func (u *Group) View(ctx context.Context, in *users.Id) (*users.Group, error)
- type PackageFeature
- type Region
- func (u *Region) Create(ctx context.Context, in *users.Region) (*users.Region, error)
- func (u *Region) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)
- func (u *Region) List(in *users.ListRegionRequest, stream users.RegionService_ListServer) error
- func (u *Region) Update(ctx context.Context, in *users.Region) (*users.Region, error)
- func (u *Region) View(ctx context.Context, in *users.Id) (*users.Region, error)
- type User
- func (u *User) Create(ctx context.Context, in *users.User) (*users.User, error)
- func (u *User) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)
- func (u *User) GetByToken(ctx context.Context, in *users.MyEmpty) (*users.User, error)
- func (u *User) List(in *users.ListUserRequest, stream users.UserService_ListServer) error
- func (u *User) Update(ctx context.Context, in *users.User) (*users.User, error)
- func (u *User) View(ctx context.Context, in *users.Id) (*users.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
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) 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 ¶
Branch struct
func (*Branch) List ¶
func (u *Branch) List(in *users.ListBranchRequest, stream users.BranchService_ListServer) error
List branches
type Company ¶
Company struct
func (*Company) Registration ¶
func (u *Company) Registration(ctx context.Context, in *users.CompanyRegistration) (*users.CompanyRegistration, error)
Registration new company
type Employee ¶
Employee struct
func (*Employee) List ¶
func (u *Employee) List(in *users.ListEmployeeRequest, stream users.EmployeeService_ListServer) error
List Employee
type Group ¶
Group struct
func (*Group) GrantAccess ¶
func (u *Group) GrantAccess(ctx context.Context, in *users.GrantAccessRequest) (*users.Message, error)
GrantAccess Group
func (*Group) List ¶
func (u *Group) List(in *users.ListGroupRequest, stream users.GroupService_ListServer) error
List Group
func (*Group) RevokeAccess ¶
func (u *Group) RevokeAccess(ctx context.Context, in *users.GrantAccessRequest) (*users.Message, error)
RevokeAccess Group
type PackageFeature ¶
type PackageFeature struct { Db *sql.DB Cache *redis.Cache users.UnimplementedPackageFeatureServiceServer }
PackageFeature struct
func (*PackageFeature) List ¶
func (u *PackageFeature) List(in *users.MyEmpty, stream users.PackageFeatureService_ListServer) error
List PackageFeature
func (*PackageFeature) View ¶
func (u *PackageFeature) View(ctx context.Context, in *users.Id) (*users.PackageOfFeature, error)
View Package Feature
type Region ¶
Region struct
func (*Region) List ¶
func (u *Region) List(in *users.ListRegionRequest, stream users.RegionService_ListServer) error
List Region
Click to show internal directories.
Click to hide internal directories.