Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func GetDescriptionFromHTML(doc *html.Node) string
- func GetDomainFromURL(urlToParse string) string
- func GetPageHTML(url string) (*html.Node, error)
- func GetTitleFromHTML(doc *html.Node) string
- func HashPassword(password string) (string, error)
- func NewZerologGORMLogger(debug bool, config logger.Config) logger.Interface
- func StringIn(s string, slice []string) bool
- func TrimString(s string, max_length int) string
- type ZerologGORMLogger
- func (z *ZerologGORMLogger) Debug(ctx context.Context, s string, i ...interface{})
- func (z *ZerologGORMLogger) Error(ctx context.Context, s string, i ...interface{})
- func (z *ZerologGORMLogger) Fatal(ctx context.Context, s string, i ...interface{})
- func (z *ZerologGORMLogger) Info(ctx context.Context, s string, i ...interface{})
- func (z *ZerologGORMLogger) LogMode(level logger.LogLevel) logger.Interface
- func (z *ZerologGORMLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (z *ZerologGORMLogger) Warn(ctx context.Context, s string, i ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GetDescriptionFromHTML ¶
func GetDomainFromURL ¶
func GetTitleFromHTML ¶
func HashPassword ¶
func NewZerologGORMLogger ¶ added in v0.2.2
Helper function to create a new logger
func TrimString ¶
Types ¶
type ZerologGORMLogger ¶ added in v0.2.2
func (*ZerologGORMLogger) Debug ¶ added in v0.2.2
func (z *ZerologGORMLogger) Debug(ctx context.Context, s string, i ...interface{})
func (*ZerologGORMLogger) Error ¶ added in v0.2.2
func (z *ZerologGORMLogger) Error(ctx context.Context, s string, i ...interface{})
func (*ZerologGORMLogger) Fatal ¶ added in v0.2.2
func (z *ZerologGORMLogger) Fatal(ctx context.Context, s string, i ...interface{})
func (*ZerologGORMLogger) Info ¶ added in v0.2.2
func (z *ZerologGORMLogger) Info(ctx context.Context, s string, i ...interface{})
func (*ZerologGORMLogger) LogMode ¶ added in v0.2.2
func (z *ZerologGORMLogger) LogMode(level logger.LogLevel) logger.Interface
Click to show internal directories.
Click to hide internal directories.