Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInternalMethod = apperr.New("all", apperr.WithTitleTranslate(translate.Translate{translate.RU: "Ошибка"}), apperr.WithContext("all"), ) ErrCommitDatabaseID = "commit_database_error" ErrPanicID = "panic_error" )
Functions ¶
Types ¶
type ITransaction ¶ added in v1.0.7
type ITransaction interface {
DBTransactionMiddleware() gin.HandlerFunc
}
type Transaction ¶ added in v1.0.7
func NewTr ¶ added in v1.0.7
func NewTr(db *gorm.DB) *Transaction
func (*Transaction) StreamServerInterceptor ¶ added in v1.0.7
func (tr *Transaction) StreamServerInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) (error error)
func (*Transaction) UnaryServerInterceptor ¶ added in v1.0.7
func (tr *Transaction) UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, error error)
Click to show internal directories.
Click to hide internal directories.