Documentation ¶
Index ¶
- Constants
- func AesDecryptCBC(encrypted []byte, key []byte) (decrypted []byte)
- func AesDecryptCFB(encrypted []byte, key []byte) (decrypted []byte)
- func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte)
- func AesEncryptCBC(origData []byte, key []byte) (encrypted []byte)
- func AesEncryptCFB(origData []byte, key []byte) (encrypted []byte)
- func AesEncryptECB(origData []byte, key []byte) (encrypted []byte)
- func EnsureValidToken(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- type ObjectStorageService
- func (s *ObjectStorageService) RemoveBOM(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) RemoveEquipment(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) RemoveLocation(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) RemovePart(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) RemoveProductionLine(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) RemoveProductionQueue(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) RemoveRoute(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) RemoveRouteOperation(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) RemoveStation(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) RemoveWorkshop(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
- func (s *ObjectStorageService) SaveBom(ctx context.Context, in *dto.DBom) (*dto.DBom, error)
- func (s *ObjectStorageService) SaveEquipment(ctx context.Context, in *dto.DEquipment) (*dto.DEquipment, error)
- func (s *ObjectStorageService) SaveFactory(ctx context.Context, in *dto.DFactory) (*dto.DFactory, error)
- func (s *ObjectStorageService) SaveShift(ctx context.Context, in *dto.DShift) (*dto.DShift, error)
- func (s *ObjectStorageService) SaveUser(ctx context.Context, in *dto.DUser) (*dto.DUser, error)
- func (s *ObjectStorageService) SaveWorkshop(ctx context.Context, in *dto.DWorkshop) (*dto.DWorkshop, error)
- type Security
- func (s *Security) ChangePassword(ctx context.Context, in *securityService.ChangePasswordRequest) (*emptypb.Empty, error)
- func (s *Security) Login(ctx context.Context, in *securityService.UsernameAndPasswordToken) (*securityService.LoginResponse, error)
- func (s *Security) Logout(ctx context.Context, in *securityService.UsernameAndPasswordToken) (*emptypb.Empty, error)
- type TransactionContext
Constants ¶
View Source
const AUTHORIZATION = "authorization"
View Source
const PasswordKey = "s8*WQ0@KO#CN*raoua8ofCTx*oxqCk46"
Variables ¶
This section is empty.
Functions ¶
func AesDecryptCBC ¶
func AesDecryptCFB ¶
func AesDecryptECB ¶
func AesEncryptCBC ¶
=================== CBC ======================
func AesEncryptCFB ¶
=================== CFB ======================
func AesEncryptECB ¶
=================== ECB ======================
func EnsureValidToken ¶
func EnsureValidToken(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Types ¶
type ObjectStorageService ¶
type ObjectStorageService struct {
objectStorage.UnimplementedObjectStorageServiceServer
}
func (*ObjectStorageService) RemoveBOM ¶
func (s *ObjectStorageService) RemoveBOM(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) RemoveEquipment ¶
func (s *ObjectStorageService) RemoveEquipment(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) RemoveLocation ¶
func (s *ObjectStorageService) RemoveLocation(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) RemovePart ¶
func (s *ObjectStorageService) RemovePart(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) RemoveProductionLine ¶
func (s *ObjectStorageService) RemoveProductionLine(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) RemoveProductionQueue ¶
func (s *ObjectStorageService) RemoveProductionQueue(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) RemoveRoute ¶
func (s *ObjectStorageService) RemoveRoute(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) RemoveRouteOperation ¶
func (s *ObjectStorageService) RemoveRouteOperation(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) RemoveStation ¶
func (s *ObjectStorageService) RemoveStation(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) RemoveWorkshop ¶
func (s *ObjectStorageService) RemoveWorkshop(ctx context.Context, in *objectStorage.RemoveObjectRequest) (*emptypb.Empty, error)
func (*ObjectStorageService) SaveEquipment ¶
func (s *ObjectStorageService) SaveEquipment(ctx context.Context, in *dto.DEquipment) (*dto.DEquipment, error)
func (*ObjectStorageService) SaveFactory ¶
func (*ObjectStorageService) SaveWorkshop ¶
type Security ¶
type Security struct {
securityService.UnimplementedSecurityServiceServer
}
func (*Security) ChangePassword ¶
func (s *Security) ChangePassword(ctx context.Context, in *securityService.ChangePasswordRequest) (*emptypb.Empty, error)
change user password
func (*Security) Login ¶
func (s *Security) Login(ctx context.Context, in *securityService.UsernameAndPasswordToken) (*securityService.LoginResponse, error)
func (*Security) Logout ¶
func (s *Security) Logout(ctx context.Context, in *securityService.UsernameAndPasswordToken) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.