helper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package provides some helping funcs, suchs as redis-related and settings parsing

Index

Constants

This section is empty.

Variables

View Source
var (
	// Local redis client
	// settings of redis server are in settings.yaml file
	Rdb *redis.Client
)
View Source
var (
	Settings = configYaml{}
)

Settings read from local YAML setting file located in 'config/settings.yaml'

Functions

func InitSettings added in v0.1.9

func InitSettings(yamlFilepath string)

func Redis_call_service added in v0.2.0

func Redis_call_service(requestId string, queueName string,
	reqQueueDataMap *map[string]interface{}) (*map[string]interface{}, error)

func Redis_publish

func Redis_publish(queue string, message string) error

Publish message to redis queue by queue name

Types

This section is empty.

Jump to

Keyboard shortcuts

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