Documentation ¶
Index ¶
- func ByteToProto(m protoreflect.ProtoMessage, js []byte) error
- func CheckData(obj interface{}, group *pb.Group, location *string) error
- func CheckDataForPatch(obj interface{}, group *pb.Group, location *string) error
- func CheckField(data map[string]interface{}, group *pb.Group, location *string) error
- func CheckFieldForPatch(data map[string]interface{}, group *pb.Group, location *string) error
- func CheckOnlyOneField(data map[string]interface{}, v *pb.Field, location *string, field string) error
- func CheckValidationFunc(funcName string, value interface{}, valueType string) bool
- func CheckValidationFunction(name string) bool
- func CheckVariable(value interface{}, field *pb.Field) bool
- func DateNow() string
- func DateNowWithLocation(location string) string
- func EmptyValue(filedType *string) interface{}
- func GenerateID() primitive.ObjectID
- func GenerateIdWithTime(date, location string) (primitive.ObjectID, error)
- func GenerateUUID() string
- func GenerateUUIDWithTime(date, location string) (string, error)
- func GetDefaultValue(fieldType, location *string, defaultValue string) interface{}
- func GetIP(c *fiber.Ctx, signIp string) string
- func HandleError(log logger.LoggerI, err error, message string, req interface{}, ...) error
- func IsValidDate(value interface{}) bool
- func IsValidEmail(email interface{}) bool
- func IsValidObjectId(value interface{}) bool
- func IsValidPhone(phone interface{}) bool
- func IsValidTime(value interface{}) bool
- func IsValidUUID(id interface{}) bool
- func JsonToJson(data interface{}, js interface{}) error
- func ProtoToString(m protoreflect.ProtoMessage) (string, error)
- func ProtoToStruct(data interface{}, m protoreflect.ProtoMessage) error
- func RegexValidate(regex string, value interface{}) bool
- func ReplaceQueryParams(namedQuery string, params map[string]interface{}) (string, []interface{})
- func ReplaceSQL(old, searchPattern string) string
- func SendEmail(subject, to, link, token string) error
- func SendFileTelegram(cfg config.Config, fileName string, data []byte) error
- func SendTelegramMessage(message string) error
- func StringToProto(m protoreflect.ProtoMessage, s string) error
- func StringToStruct(data interface{}, js string) error
- func StringToStructPb(js string) (entity *structpb.Struct, err error)
- func StructPbToString(entity *structpb.Struct) (string, error)
- func StructToProto(m protoreflect.ProtoMessage, data interface{}) error
- func TimeNow() string
- func TimeNowWithLocation(location string) string
- func ToLocationTime(date, location string) (string, error)
- func ToNullString(s *wrappers.StringValue) (res sql.NullString)
- func ToObjectID(id interface{}) (primitive.ObjectID, error)
- func ToProtoStruct(body interface{}) (entity *structpb.Struct, err error)
- func ToStringValue(s sql.NullString) *wrappers.StringValue
- func ToUTC(date, location string) (string, error)
- func TotalSumma(totalsum *float64, s string) error
- func ValidateRegex(regex string) error
- func WriteNumOz(n int, str string) string
- func WriteNumRu(n int, str string) string
- func WriteNumUz(n int, str string) string
- func WriteOz(n string) string
- func WriteRu(n string) string
- func WriteUz(n string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteToProto ¶
func ByteToProto(m protoreflect.ProtoMessage, js []byte) error
func CheckDataForPatch ¶
func CheckField ¶
func CheckFieldForPatch ¶
func CheckOnlyOneField ¶
func CheckValidationFunc ¶
func CheckValidationFunction ¶
func CheckVariable ¶
func DateNowWithLocation ¶
func EmptyValue ¶
func EmptyValue(filedType *string) interface{}
func GenerateID ¶
func GenerateIdWithTime ¶
func GenerateUUID ¶
func GenerateUUID() string
func GenerateUUIDWithTime ¶
func GetDefaultValue ¶
func HandleError ¶
func IsValidDate ¶
func IsValidDate(value interface{}) bool
func IsValidEmail ¶
func IsValidEmail(email interface{}) bool
func IsValidObjectId ¶
func IsValidObjectId(value interface{}) bool
func IsValidPhone ¶
func IsValidPhone(phone interface{}) bool
func IsValidTime ¶
func IsValidTime(value interface{}) bool
func IsValidUUID ¶
func IsValidUUID(id interface{}) bool
func JsonToJson ¶
func JsonToJson(data interface{}, js interface{}) error
func ProtoToString ¶
func ProtoToString(m protoreflect.ProtoMessage) (string, error)
func ProtoToStruct ¶
func ProtoToStruct(data interface{}, m protoreflect.ProtoMessage) error
func RegexValidate ¶
func ReplaceQueryParams ¶
func ReplaceSQL ¶
func SendFileTelegram ¶
func SendTelegramMessage ¶
func StringToProto ¶
func StringToProto(m protoreflect.ProtoMessage, s string) error
func StringToStruct ¶
func StructToProto ¶
func StructToProto(m protoreflect.ProtoMessage, data interface{}) error
func TimeNowWithLocation ¶
func ToLocationTime ¶
func ToNullString ¶
func ToNullString(s *wrappers.StringValue) (res sql.NullString)
func ToObjectID ¶
func ToProtoStruct ¶
func ToStringValue ¶
func ToStringValue(s sql.NullString) *wrappers.StringValue
func TotalSumma ¶
func ValidateRegex ¶
func WriteNumOz ¶
func WriteNumRu ¶
func WriteNumUz ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.