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, streamServer 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 Brand
- func (u *Brand) Create(ctx context.Context, in *inventories.Brand) (*inventories.Brand, error)
- func (u *Brand) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
- func (u *Brand) List(in *inventories.Pagination, streamServer inventories.BrandService_ListServer) error
- func (u *Brand) Update(ctx context.Context, in *inventories.Brand) (*inventories.Brand, error)
- func (u *Brand) View(ctx context.Context, in *inventories.Id) (*inventories.Brand, error)
- type Category
- type Company
- type Customer
- func (u *Customer) CustomerCreate(ctx context.Context, in *sales.Customer) (*sales.Customer, error)
- func (u *Customer) CustomerList(in *sales.ListCustomerRequest, ...) error
- func (u *Customer) CustomerUpdate(ctx context.Context, in *sales.Customer) (*sales.Customer, error)
- func (u *Customer) CustomerView(ctx context.Context, in *sales.Id) (*sales.Customer, error)
- 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, streamServer 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, streamServer 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 Product
- func (u *Product) Create(ctx context.Context, in *inventories.Product) (*inventories.Product, error)
- func (u *Product) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
- func (u *Product) List(in *inventories.ListProductRequest, ...) error
- func (u *Product) Track(ctx context.Context, in *inventories.Product) (*inventories.Transactions, error)
- func (u *Product) Update(ctx context.Context, in *inventories.Product) (*inventories.Product, error)
- func (u *Product) View(ctx context.Context, in *inventories.Id) (*inventories.Product, error)
- type ProductCategory
- func (u *ProductCategory) Create(ctx context.Context, in *inventories.ProductCategory) (*inventories.ProductCategory, error)
- func (u *ProductCategory) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
- func (u *ProductCategory) List(in *inventories.ListProductCategoryRequest, ...) error
- func (u *ProductCategory) Update(ctx context.Context, in *inventories.ProductCategory) (*inventories.ProductCategory, error)
- func (u *ProductCategory) View(ctx context.Context, in *inventories.Id) (*inventories.ProductCategory, error)
- type Purchase
- func (u *Purchase) GetOutstandingPurchaseDetails(ctx context.Context, in *purchases.OutstandingPurchaseRequest) (*purchases.OutstandingPurchaseDetails, error)
- func (u *Purchase) PurchaseCreate(ctx context.Context, in *purchases.Purchase) (*purchases.Purchase, error)
- func (u *Purchase) PurchaseList(in *purchases.ListPurchaseRequest, ...) error
- func (u *Purchase) PurchaseUpdate(ctx context.Context, in *purchases.Purchase) (*purchases.Purchase, error)
- func (u *Purchase) PurchaseView(ctx context.Context, in *purchases.Id) (*purchases.Purchase, error)
- type PurchaseReturn
- func (u *PurchaseReturn) PurchaseReturnCreate(ctx context.Context, in *purchases.PurchaseReturn) (*purchases.PurchaseReturn, error)
- func (u *PurchaseReturn) PurchaseReturnList(in *purchases.ListPurchaseReturnRequest, ...) error
- func (u *PurchaseReturn) PurchaseReturnUpdate(ctx context.Context, in *purchases.PurchaseReturn) (*purchases.PurchaseReturn, error)
- func (u *PurchaseReturn) PurchaseReturnView(ctx context.Context, in *purchases.Id) (*purchases.PurchaseReturn, error)
- type Receive
- func (u *Receive) Create(ctx context.Context, in *inventories.Receive) (*inventories.Receive, error)
- func (u *Receive) List(in *inventories.ListReceiveRequest, ...) error
- func (u *Receive) OutstandingByPurchase(ctx context.Context, in *inventories.Id) (*inventories.OutstandingResponse, error)
- func (u *Receive) Update(ctx context.Context, in *inventories.Receive) (*inventories.Receive, error)
- func (u *Receive) View(ctx context.Context, in *inventories.Id) (*inventories.Receive, error)
- 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, streamServer 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 Salesman
- func (u *Salesman) SalesmanCreate(ctx context.Context, in *sales.Salesman) (*sales.Salesman, error)
- func (u *Salesman) SalesmanList(in *sales.ListSalesmanRequest, ...) error
- func (u *Salesman) SalesmanUpdate(ctx context.Context, in *sales.Salesman) (*sales.Salesman, error)
- func (u *Salesman) SalesmanView(ctx context.Context, in *sales.Id) (*sales.Salesman, error)
- type Shelve
- func (u *Shelve) Create(ctx context.Context, in *inventories.Shelve) (*inventories.Shelve, error)
- func (u *Shelve) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
- func (u *Shelve) List(in *inventories.ListShelveRequest, ...) error
- func (u *Shelve) Update(ctx context.Context, in *inventories.Shelve) (*inventories.Shelve, error)
- func (u *Shelve) View(ctx context.Context, in *inventories.Id) (*inventories.Shelve, error)
- type Supplier
- func (u *Supplier) SupplierCreate(ctx context.Context, in *purchases.Supplier) (*purchases.Supplier, error)
- func (u *Supplier) SupplierList(in *purchases.ListSupplierRequest, ...) error
- func (u *Supplier) SupplierUpdate(ctx context.Context, in *purchases.Supplier) (*purchases.Supplier, error)
- func (u *Supplier) SupplierView(ctx context.Context, in *purchases.Id) (*purchases.Supplier, 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, streamServer 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)
- type Warehouse
- func (u *Warehouse) Create(ctx context.Context, in *inventories.Warehouse) (*inventories.Warehouse, error)
- func (u *Warehouse) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
- func (u *Warehouse) List(in *inventories.ListWarehouseRequest, ...) error
- func (u *Warehouse) Update(ctx context.Context, in *inventories.Warehouse) (*inventories.Warehouse, error)
- func (u *Warehouse) View(ctx context.Context, in *inventories.Id) (*inventories.Warehouse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct { Client users.AccessServiceClient users.UnimplementedAccessServiceServer }
Access struct
type Auth ¶
type Auth struct { Client users.AuthServiceClient 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) 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 { Client users.BranchServiceClient users.UnimplementedBranchServiceServer }
Branch struct
func (*Branch) List ¶
func (u *Branch) List(in *users.ListBranchRequest, streamServer users.BranchService_ListServer) error
List branches
type Brand ¶
type Brand struct { Client inventories.BrandServiceClient inventories.UnimplementedBrandServiceServer }
Brand struct
func (*Brand) Create ¶
func (u *Brand) Create(ctx context.Context, in *inventories.Brand) (*inventories.Brand, error)
Create new Brand
func (*Brand) Delete ¶
func (u *Brand) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
Delete Brand
func (*Brand) List ¶
func (u *Brand) List(in *inventories.Pagination, streamServer inventories.BrandService_ListServer) error
List Brands
func (*Brand) Update ¶
func (u *Brand) Update(ctx context.Context, in *inventories.Brand) (*inventories.Brand, error)
Update Brand
func (*Brand) View ¶
func (u *Brand) View(ctx context.Context, in *inventories.Id) (*inventories.Brand, error)
View Brand
type Category ¶
type Category struct { Client inventories.CategoryServiceClient inventories.UnimplementedCategoryServiceServer }
func (*Category) List ¶
func (u *Category) List(in *inventories.MyEmpty, streamServer inventories.CategoryService_ListServer) error
type Company ¶
type Company struct { Client users.CompanyServiceClient users.UnimplementedCompanyServiceServer }
Company struct
func (*Company) Registration ¶
func (u *Company) Registration(ctx context.Context, in *users.CompanyRegistration) (*users.CompanyRegistration, error)
Registration new company
type Customer ¶
type Customer struct { Client sales.CustomerServiceClient sales.UnimplementedCustomerServiceServer }
Customer struct
func (*Customer) CustomerCreate ¶
Create new Customer
func (*Customer) CustomerList ¶
func (u *Customer) CustomerList(in *sales.ListCustomerRequest, streamServer sales.CustomerService_CustomerListServer) error
List Customers
func (*Customer) CustomerUpdate ¶
Update Customer
type Employee ¶
type Employee struct { Client users.EmployeeServiceClient users.UnimplementedEmployeeServiceServer }
Employee struct
func (*Employee) List ¶
func (u *Employee) List(in *users.ListEmployeeRequest, streamServer users.EmployeeService_ListServer) error
List Employee
type Feature ¶
type Feature struct { Client users.FeatureServiceClient users.UnimplementedFeatureServiceServer }
Feature struct
type Group ¶
type Group struct { Client users.GroupServiceClient users.UnimplementedGroupServiceServer }
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, streamServer 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 { Client users.PackageFeatureServiceClient users.UnimplementedPackageFeatureServiceServer }
PackageFeature struct
func (*PackageFeature) List ¶
func (u *PackageFeature) List(in *users.MyEmpty, streamServer 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 Product ¶
type Product struct { Client inventories.ProductServiceClient inventories.UnimplementedProductServiceServer }
func (*Product) Create ¶
func (u *Product) Create(ctx context.Context, in *inventories.Product) (*inventories.Product, error)
Create new Product
func (*Product) Delete ¶
func (u *Product) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
Delete Product
func (*Product) List ¶
func (u *Product) List(in *inventories.ListProductRequest, streamServer inventories.ProductService_ListServer) error
List Products
func (*Product) Track ¶
func (u *Product) Track(ctx context.Context, in *inventories.Product) (*inventories.Transactions, error)
func (*Product) Update ¶
func (u *Product) Update(ctx context.Context, in *inventories.Product) (*inventories.Product, error)
Update Product
func (*Product) View ¶
func (u *Product) View(ctx context.Context, in *inventories.Id) (*inventories.Product, error)
View Product
type ProductCategory ¶
type ProductCategory struct { Client inventories.ProductCategoryServiceClient inventories.UnimplementedProductCategoryServiceServer }
func (*ProductCategory) Create ¶
func (u *ProductCategory) Create(ctx context.Context, in *inventories.ProductCategory) (*inventories.ProductCategory, error)
func (*ProductCategory) Delete ¶
func (u *ProductCategory) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
func (*ProductCategory) List ¶
func (u *ProductCategory) List(in *inventories.ListProductCategoryRequest, streamServer inventories.ProductCategoryService_ListServer) error
func (*ProductCategory) Update ¶
func (u *ProductCategory) Update(ctx context.Context, in *inventories.ProductCategory) (*inventories.ProductCategory, error)
func (*ProductCategory) View ¶
func (u *ProductCategory) View(ctx context.Context, in *inventories.Id) (*inventories.ProductCategory, error)
type Purchase ¶
type Purchase struct { Client purchases.PurchaseServiceClient purchases.UnimplementedPurchaseServiceServer }
Purchase struct
func (*Purchase) GetOutstandingPurchaseDetails ¶
func (u *Purchase) GetOutstandingPurchaseDetails(ctx context.Context, in *purchases.OutstandingPurchaseRequest) (*purchases.OutstandingPurchaseDetails, error)
func (*Purchase) PurchaseCreate ¶
func (u *Purchase) PurchaseCreate(ctx context.Context, in *purchases.Purchase) (*purchases.Purchase, error)
Create new Purchase
func (*Purchase) PurchaseList ¶
func (u *Purchase) PurchaseList(in *purchases.ListPurchaseRequest, streamServer purchases.PurchaseService_PurchaseListServer) error
List Purchases
type PurchaseReturn ¶
type PurchaseReturn struct { Client purchases.PurchaseReturnServiceClient purchases.UnimplementedPurchaseReturnServiceServer }
PurchaseReturn struct
func (*PurchaseReturn) PurchaseReturnCreate ¶
func (u *PurchaseReturn) PurchaseReturnCreate(ctx context.Context, in *purchases.PurchaseReturn) (*purchases.PurchaseReturn, error)
Create new PurchaseReturn
func (*PurchaseReturn) PurchaseReturnList ¶
func (u *PurchaseReturn) PurchaseReturnList(in *purchases.ListPurchaseReturnRequest, streamServer purchases.PurchaseReturnService_PurchaseReturnListServer) error
List PurchaseReturns
func (*PurchaseReturn) PurchaseReturnUpdate ¶
func (u *PurchaseReturn) PurchaseReturnUpdate(ctx context.Context, in *purchases.PurchaseReturn) (*purchases.PurchaseReturn, error)
Update PurchaseReturn
func (*PurchaseReturn) PurchaseReturnView ¶
func (u *PurchaseReturn) PurchaseReturnView(ctx context.Context, in *purchases.Id) (*purchases.PurchaseReturn, error)
View PurchaseReturn
type Receive ¶
type Receive struct { Client inventories.ReceiveServiceClient inventories.UnimplementedReceiveServiceServer }
Receive struct
func (*Receive) Create ¶
func (u *Receive) Create(ctx context.Context, in *inventories.Receive) (*inventories.Receive, error)
Create new Receive
func (*Receive) List ¶
func (u *Receive) List(in *inventories.ListReceiveRequest, streamServer inventories.ReceiveService_ListServer) error
List Receives
func (*Receive) OutstandingByPurchase ¶
func (u *Receive) OutstandingByPurchase(ctx context.Context, in *inventories.Id) (*inventories.OutstandingResponse, error)
func (*Receive) Update ¶
func (u *Receive) Update(ctx context.Context, in *inventories.Receive) (*inventories.Receive, error)
Update Receive
func (*Receive) View ¶
func (u *Receive) View(ctx context.Context, in *inventories.Id) (*inventories.Receive, error)
View Receive
type Region ¶
type Region struct { Client users.RegionServiceClient users.UnimplementedRegionServiceServer }
Region struct
func (*Region) List ¶
func (u *Region) List(in *users.ListRegionRequest, streamServer users.RegionService_ListServer) error
List Region
type Salesman ¶
type Salesman struct { Client sales.SalesmanServiceClient sales.UnimplementedSalesmanServiceServer }
Salesman struct
func (*Salesman) SalesmanCreate ¶
Create new Salesman
func (*Salesman) SalesmanList ¶
func (u *Salesman) SalesmanList(in *sales.ListSalesmanRequest, streamServer sales.SalesmanService_SalesmanListServer) error
List Salesmans
func (*Salesman) SalesmanUpdate ¶
Update Salesman
type Shelve ¶
type Shelve struct { Client inventories.ShelveServiceClient inventories.UnimplementedShelveServiceServer }
func (*Shelve) Create ¶
func (u *Shelve) Create(ctx context.Context, in *inventories.Shelve) (*inventories.Shelve, error)
Create new shelve
func (*Shelve) Delete ¶
func (u *Shelve) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
Delete shelve
func (*Shelve) List ¶
func (u *Shelve) List(in *inventories.ListShelveRequest, streamServer inventories.ShelveService_ListServer) error
List Shelves
func (*Shelve) Update ¶
func (u *Shelve) Update(ctx context.Context, in *inventories.Shelve) (*inventories.Shelve, error)
Update shelve
func (*Shelve) View ¶
func (u *Shelve) View(ctx context.Context, in *inventories.Id) (*inventories.Shelve, error)
View shelve
type Supplier ¶
type Supplier struct { Client purchases.SupplierServiceClient purchases.UnimplementedSupplierServiceServer }
Supplier struct
func (*Supplier) SupplierCreate ¶
func (u *Supplier) SupplierCreate(ctx context.Context, in *purchases.Supplier) (*purchases.Supplier, error)
Create new Supplier
func (*Supplier) SupplierList ¶
func (u *Supplier) SupplierList(in *purchases.ListSupplierRequest, streamServer purchases.SupplierService_SupplierListServer) error
List Suppliers
type User ¶
type User struct { Client users.UserServiceClient users.UnimplementedUserServiceServer }
User struct
func (*User) GetByToken ¶
GetByToken func
func (*User) List ¶
func (u *User) List(in *users.ListUserRequest, streamServer users.UserService_ListServer) error
List func
type Warehouse ¶
type Warehouse struct { Client inventories.WarehouseServiceClient inventories.UnimplementedWarehouseServiceServer }
func (*Warehouse) Create ¶
func (u *Warehouse) Create(ctx context.Context, in *inventories.Warehouse) (*inventories.Warehouse, error)
Create new Warehouse
func (*Warehouse) Delete ¶
func (u *Warehouse) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)
Delete Warehouse
func (*Warehouse) List ¶
func (u *Warehouse) List(in *inventories.ListWarehouseRequest, streamServer inventories.WarehouseService_ListServer) error
List Warehouses
func (*Warehouse) Update ¶
func (u *Warehouse) Update(ctx context.Context, in *inventories.Warehouse) (*inventories.Warehouse, error)
Update Warehouse
func (*Warehouse) View ¶
func (u *Warehouse) View(ctx context.Context, in *inventories.Id) (*inventories.Warehouse, error)
View Warehouse