common

package
v0.0.0-...-15b6e06 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseLogging

func CloseLogging()

func CreateToken

func CreateToken(email string) (string, error)

func GenerateRandomString

func GenerateRandomString(length int) string

func GetIntValue

func GetIntValue(key string) int

func GetLogger

func GetLogger() zerolog.Logger

func GetStringValue

func GetStringValue(key string) string

GetStringValue accepts the config key "root_key.sub_key", and returns the associated value.

func InitializeConfiguration

func InitializeConfiguration()

InitializeConfiguration we initially need to tell viper how to access the configuration which type the configuration is of, and where it's located.

func PanicOnError

func PanicOnError(err error)

func SentMessage

func SentMessage(message Message) error

Types

type Message

type Message struct {
	Token    string
	Subject  string
	Receiver string
}

Jump to

Keyboard shortcuts

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