service

package
v0.0.0-...-7261592 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

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 AesDecryptCBC(encrypted []byte, key []byte) (decrypted []byte)

func AesDecryptCFB

func AesDecryptCFB(encrypted []byte, key []byte) (decrypted []byte)

func AesDecryptECB

func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte)

func AesEncryptCBC

func AesEncryptCBC(origData []byte, key []byte) (encrypted []byte)

=================== CBC ======================

func AesEncryptCFB

func AesEncryptCFB(origData []byte, key []byte) (encrypted []byte)

=================== CFB ======================

func AesEncryptECB

func AesEncryptECB(origData []byte, key []byte) (encrypted []byte)

=================== 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 (*ObjectStorageService) RemoveEquipment

func (*ObjectStorageService) RemoveLocation

func (*ObjectStorageService) RemovePart

func (*ObjectStorageService) RemoveProductionLine

func (*ObjectStorageService) RemoveProductionQueue

func (*ObjectStorageService) RemoveRoute

func (*ObjectStorageService) RemoveRouteOperation

func (*ObjectStorageService) RemoveStation

func (*ObjectStorageService) RemoveWorkshop

func (*ObjectStorageService) SaveBom

func (s *ObjectStorageService) SaveBom(ctx context.Context, in *dto.DBom) (*dto.DBom, error)

func (*ObjectStorageService) SaveEquipment

func (s *ObjectStorageService) SaveEquipment(ctx context.Context, in *dto.DEquipment) (*dto.DEquipment, error)

func (*ObjectStorageService) SaveFactory

func (s *ObjectStorageService) SaveFactory(ctx context.Context, in *dto.DFactory) (*dto.DFactory, error)

func (*ObjectStorageService) SaveShift

func (s *ObjectStorageService) SaveShift(ctx context.Context, in *dto.DShift) (*dto.DShift, error)

func (*ObjectStorageService) SaveUser

func (s *ObjectStorageService) SaveUser(ctx context.Context, in *dto.DUser) (*dto.DUser, error)

func (*ObjectStorageService) SaveWorkshop

func (s *ObjectStorageService) SaveWorkshop(ctx context.Context, in *dto.DWorkshop) (*dto.DWorkshop, error)

type Security

func (*Security) ChangePassword

change user password

func (*Security) Logout

type TransactionContext

type TransactionContext struct {
	Comment           string
	TransactionName   string
	TransactionTime   time.Time
	UserName          string
	TransactionObject interface{}
	ObjectType        string
	ObjectId          uint64
}

Jump to

Keyboard shortcuts

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