core

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func GetDescriptionFromHTML

func GetDescriptionFromHTML(doc *html.Node) string

func GetDomainFromURL

func GetDomainFromURL(urlToParse string) string

func GetPageHTML

func GetPageHTML(url string) (*html.Node, error)

func GetTitleFromHTML

func GetTitleFromHTML(doc *html.Node) string

func HashPassword

func HashPassword(password string) (string, error)

func NewZerologGORMLogger added in v0.2.2

func NewZerologGORMLogger(debug bool, config logger.Config) logger.Interface

Helper function to create a new logger

func StringIn

func StringIn(s string, slice []string) bool

func TrimString

func TrimString(s string, max_length int) string

Types

type ZerologGORMLogger added in v0.2.2

type ZerologGORMLogger struct {
	logger.Config
	// contains filtered or unexported fields
}

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

func (*ZerologGORMLogger) Trace added in v0.2.2

func (z *ZerologGORMLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)

func (*ZerologGORMLogger) Warn added in v0.2.2

func (z *ZerologGORMLogger) Warn(ctx context.Context, s string, i ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL