commons

package
v0.0.0-...-c09083a Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NSQCoreUrl = "[fd2f:376d:8703:aa64:1::]:4150"

var NSQCoreUrl = "[fd0d:944c:1337:aa64:1::]:4150"

View Source
var ProxyCachePath = "/etc/berrylium.json"
View Source
var ProxyConfigPath = "/usr/local/openresty/nginx/conf/nginx.conf"

Functions

func CreateNSQConsumer

func CreateNSQConsumer(uri string, topic string, channel string, handler nsq.Handler) *nsq.Consumer

func GetHostname

func GetHostname() string

func GetMachineID

func GetMachineID() int64

func GetSnow

func GetSnow() *snowflake.Node

func ProducerSendStruct

func ProducerSendStruct(structToSend interface{}, title string, producer *nsq.Producer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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