Documentation ¶
Index ¶
- func FileExists(name string) bool
- func FromSQLInt32OrZero(sqlData sql.NullInt32) int32
- func FromSQLStr(sqlStr sql.NullString) string
- func MakeFileName(ID, fileName string) string
- func MakeValidateFileName(ID, fileName string) (string, error)
- func NewErrNonRestorableUsage(err error) error
- func ParamTrue(prm string) bool
- func RunPerfEndpoint()
- func SupportAudioExt(ext string) bool
- func ToSQLInt32(i int32) sql.NullInt32
- func ToSQLStr(s string) sql.NullString
- func WriteFile(name string, data []byte) error
- type ErrNonRestorableUsage
- type GueLogAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSQLInt32OrZero ¶
FromSQLInt32OrZero returns int from sql.NullInt32
func FromSQLStr ¶
func FromSQLStr(sqlStr sql.NullString) string
FromSQLStr returns string from sql.NullString
func MakeFileName ¶
MakeFileName prepares a file for file keeper
func MakeValidateFileName ¶
MakeValidateFileName prepares/sanitizes a file for file keeper and validates
func NewErrNonRestorableUsage ¶
NewErrNonRestorableUsage creates new error
func RunPerfEndpoint ¶
func RunPerfEndpoint()
func SupportAudioExt ¶
SupportAudioExt checks if audio ext is supported
Types ¶
type ErrNonRestorableUsage ¶
type ErrNonRestorableUsage struct {
// contains filtered or unexported fields
}
ErrNonRestorableUsage indicates non restoreable usage error on any error system tries to restore users usage counter but on this error it does not
func (*ErrNonRestorableUsage) Error ¶
func (e *ErrNonRestorableUsage) Error() string
func (*ErrNonRestorableUsage) Unwrap ¶
func (e *ErrNonRestorableUsage) Unwrap() error
type GueLogAdapter ¶
type GueLogAdapter struct {
// contains filtered or unexported fields
}
GueLogAdapter implementation
func NewGueLoggerAdapter ¶
func NewGueLoggerAdapter() *GueLogAdapter
NewGueLoggerAdapter creates new instance
func (*GueLogAdapter) Debug ¶
func (l *GueLogAdapter) Debug(msg string, fields ...adapter.Field)
Debug implements adapter.Logger
func (*GueLogAdapter) Error ¶
func (l *GueLogAdapter) Error(msg string, fields ...adapter.Field)
Error implements adapter.Logger
Click to show internal directories.
Click to hide internal directories.