nail

package
v0.0.0-...-dbefbc8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 19 Imported by: 0

README

Nail Microservice

Nail sucks down data from NSQ topics and feeds them into a SQL database.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandler

func AddHandler(topic string, spawnFunc spawnFunc)

AddHandler adds a nail handler

Types

type Nail

type Nail struct {
	// contains filtered or unexported fields
}

Nail handles storage of data to SQL

func NewNail

func NewNail(redis *redis.Pool, db *sqlx.DB, addresses []string) *Nail

NewNail creates a new storage engine

func (*Nail) Close

func (s *Nail) Close()

Close stop the nail service

func (*Nail) Run

func (s *Nail) Run()

Run the nail service

Jump to

Keyboard shortcuts

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