Documentation
¶
Index ¶
- func ArrayKey(ar map[string]interface{}) []string
- func Contains(tmp []string, str string) (bool, string)
- func Converter(req any) map[string]interface{}
- func DateFormat(data DateTime) (string, int64)
- func EPrintJSON(c *gin.Context, response any)
- func EmptyString(data interface{}) bool
- func HtmlTo(tipe, filepath, temp string, data map[string]interface{}) string
- func InArray(s []string, str string) (bool, string)
- func InsertData(db *gorm.DB, table string, data any) any
- func IsEmpty(data []any) bool
- func Md5(data []byte) string
- func PrintJSON(c *gin.Context, response any)
- func Ranum() int
- func RumusPajak(tanggal string, tipe string) float64
- func SaveExcel(f *excelize.File, path string, filename string) (bool, string)
- func SaveFile(path string, file *multipart.FileHeader) (bool, string)
- func UUID() string
- func Unrupiah(nilai string) int64
- func Validation(request map[string]interface{}, format map[string]map[string]string) string
- type DateTime
- type FormatRedis
- type Jamet
- func (met *Jamet) Connection(conn string) *gorm.DB
- func (met *Jamet) CreateData(c *gin.Context, table *gorm.DB, field []string) map[string]interface{}
- func (met *Jamet) CreateDataTable(c *gin.Context, table *gorm.DB, search []string) map[string]interface{}
- func (met *Jamet) DelCache(previx string, d string)
- func (met *Jamet) ErrorLog()
- func (met *Jamet) GetData(table string, connection string) *gorm.DB
- func (met *Jamet) GetRequest(c *gin.Context) []byte
- func (met *Jamet) LogCustom(namaModule, tipe, message string)
- func (met *Jamet) LogDebug(message string)
- func (met *Jamet) LogError(message string)
- func (met *Jamet) LogFatal(message string)
- func (met *Jamet) LogInfo(message string)
- func (met *Jamet) LogSuccess(message string)
- func (met *Jamet) Logging(body []byte)
- func (met *Jamet) PostXT(url string, body []byte, header map[string]string) map[string]interface{}
- func (met *Jamet) ReadCache(previx string, d string) (bool, map[string]interface{})
- func (met *Jamet) SinchronizeID(db *gorm.DB, id string, char string, format int32) string
- func (met *Jamet) WriteCache(previx string, data any, d string)
- type LoggerConfig
- func (l *LoggerConfig) Error(ctx context.Context, msg string, data ...interface{})
- func (l *LoggerConfig) ErrorLog()
- func (l *LoggerConfig) Info(ctx context.Context, msg string, data ...interface{})
- func (l *LoggerConfig) LogMode(level logger.LogLevel) logger.Interface
- func (l *LoggerConfig) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *LoggerConfig) Warn(ctx context.Context, msg string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateFormat ¶
func EmptyString ¶
func EmptyString(data interface{}) bool
func RumusPajak ¶
Types ¶
type FormatRedis ¶
type Jamet ¶
func (*Jamet) CreateData ¶
func (*Jamet) CreateDataTable ¶
func (*Jamet) LogSuccess ¶
func (*Jamet) SinchronizeID ¶
type LoggerConfig ¶
type LoggerConfig struct { SlowThreshold time.Duration LogLevel logger.LogLevel Url string // contains filtered or unexported fields }
func NewLogger ¶
func NewLogger(config LoggerConfig) *LoggerConfig
func (*LoggerConfig) Error ¶
func (l *LoggerConfig) Error(ctx context.Context, msg string, data ...interface{})
func (*LoggerConfig) Info ¶
func (l *LoggerConfig) Info(ctx context.Context, msg string, data ...interface{})
func (*LoggerConfig) LogMode ¶
func (l *LoggerConfig) LogMode(level logger.LogLevel) logger.Interface
Click to show internal directories.
Click to hide internal directories.