Versions in this module Expand all Collapse all v1 v1.1.1 Oct 20, 2020 v1.1.0 Oct 20, 2020 Changes in this version + func Configure(config LogConfig) *Logger + func ConnectToPaypal() + func Consume(queue string) + func CreateOrder(o *models.Payment, user *models.User) error + func Decrypt(encryptedString string, keyString string) (decryptedString string) + func Encrypt(stringToEncrypt string, keyString string) (encryptedString string) + func GetOrder(id string) (*paypal.Order, error) + func Publish(queue string, payload interface{}) + func SetupQueue() *amqp.Connection + func SetupZeroLog() *Logger + type LogConfig struct + ConsoleLoggingEnabled bool + Directory string + EncodeLogsAsJson bool + FileLoggingEnabled bool + Filename string + MaxAge int + MaxBackups int + MaxSize int + type LogFields struct + Error error + Host string + Latency float64 + Method string + Path string + Protocol string + RemoteIP string + RequestID string + Stack []byte + StatusCode int + func (lf *LogFields) MarshalZerologObject(e *zerolog.Event) + type Order struct + Amount string + Currency string + InvoiceID string + OrderUrl string + PayPalOrderDetail *paypal.Order + type URL struct + App *fiber.App + Ctx *fiber.Ctx + func (u *URL) SignedUrl(path string, config URLConfig) string + func (u *URL) TemporarySignedUrl(path string, config URLConfig) string + func (u *URL) TemporaryUrl(path string, config URLConfig) string + type URLConfig struct + AllowOnce bool + Expire time.Duration + Lookup func(interface{}) string